public static void setCookie(string strName, string strValue)
{
HttpCookie cookie = HttpContext.Current.Request.Cookies[strName];
if (cookie == null)
{
cookie = new HttpCookie(strName);
}
cookie.Value = strValue;
HttpContext.Current.Response.AppendCookie(cookie);
}
请问我用这段代码操作COOKIES,当插入COOKIES的时候,为什么在WIN7,IE8的COOKIE文件夹下没有找到对应的COOKIE呢?PS: 使用 HttpContext.Current.Request.Cookies[strName].Value 可以读取出COOKIE的值,但是在浏览器的COOKIE文件夹里找不到对应的cookie
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货