子域 根域 Cookie的写入与清除
摘要:
cookie的写入:HttpCookie hc = new HttpCookie("username",uid.ToString());hc.Expires = DateTime.Now.AddDays(1);hc.Domain = "b.com";HttpContext.Current.Response.Cookies.Add(hc);此时是无法通过以下代码,直接清除的;HttpContext.Current.Response.Cookies["username"].Expires = DateTime.Now.AddDays(-1 阅读全文
posted @ 2011-08-03 15:45 fasttime 阅读(602) 评论(0) 推荐(1)
浙公网安备 33010602011771号