C#清除cookie
C#清除cookie
找了很长时间终于好用了分享一下代码
this.Request.Cookies["adminusers"].Expires = DateTime.Now.AddHours(-1); // this.Response.Cookies.Remove("adminusers"); Response.Cookies.Add(Request.Cookies["adminusers"]);
C#清除cookie
找了很长时间终于好用了分享一下代码
this.Request.Cookies["adminusers"].Expires = DateTime.Now.AddHours(-1); // this.Response.Cookies.Remove("adminusers"); Response.Cookies.Add(Request.Cookies["adminusers"]);