清除Cookie 有更好的方法吗?本以为Response.Cookie.Clear()就会清除掉Cookie的,郁闷,难道非要用下面的方法清除?System.Web.HttpCookieCollection reqcookie = Request.Cookies;
System.Web.HttpCookieCollection respcookie = new HttpCookieCollection();for(int i = 0;i<reqcookie.Count;i++)
{
if (reqcookie[i].Name != "ASP.NET_SessionId")
{

System.Web.HttpCookie cookie = new HttpCookie(reqcookie[i].Name);
cookie.Expires = DateTime.Now;
respcookie.Add(cookie);
}}for (int i = 0;i<respcookie.Count;i++)
{
Response.Cookies.Add(respcookie[i]);
}