//发送Cookie
HttpCookie cookie=new HttpCookie("userName");
cookie["userName"]=username.Text.ToString();
//时间是下拉列表cook的值
int times=int.Parse(cook.SelectedValue.ToString());
cookie.Expires=DateTime.Now.AddHours(times);
Response.Cookies.Add(cookie);
问题:我要清空这个COOKIE应该怎么写?
HttpCookie cookie=new HttpCookie("userName");
cookie["userName"]=username.Text.ToString();
//时间是下拉列表cook的值
int times=int.Parse(cook.SelectedValue.ToString());
cookie.Expires=DateTime.Now.AddHours(times);
Response.Cookies.Add(cookie);
问题:我要清空这个COOKIE应该怎么写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货