ucenter 与ASP.NET
太怪了
现在在我ASP.NET网站登录,BBS也同步登录了
但我在BBS登录时。
HttpCookie cookie = new HttpCookie("aaaa");
cookie.Domain = "test.com";
cookie.Value = "aaaaaaaaasaaaaaaaaaaaaaaaaaaaa";
cookie.Expires = DateTime.Now.AddDays(10);
Response.Cookies.Add(cookie);
using (StreamWriter sw = new StreamWriter(@"E:\php\UCenterApi\UserCenter\UserCenter.Web\c.txt"))
{
sw.WriteLine("aaa");
sw.Flush();
sw.Close();
}
这个文件写成功了。
但在test.com里没有我写的COOKIE
注:论坛为bbs.test.com.它写的cookie为test.com与bbs.test.com两个cookie.
Asp.net网站域 名为 www.test.com
求答案。。。。