复制代码 代码如下:
1. HttpCookie aCookie;
2. string cookieName;
3. int limit = Request.Cookies.Count;
4. for (int i = 0; i < limit; i++)
5. {
6. cookieName = Request.Cookies[i].Name;
7. aCookie = new HttpCookie(cookieName);
8. aCookie.Expires = DateTime.Now.AddDays(-1);
9. Response.Cookies.Add(aCookie);
10. }
新闻热点
疑难解答
图片精选