标签: asp.net cookies
我为我的登录页面编写了这段代码:
HttpCookie cookie = new HttpCookie("a"); cookie["name"] = (string)ddr["name"]; cookie["phone"] = (string)ddr["phone"]; cookie.Expires = DateTime.Now.AddSeconds(10);
如何在其他页面中使用Cookie过期时间在10秒后阻止用户?