Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
if (Request.Cookies["UserSettings"] != null) { HttpCookie myCookie = new HttpCookie("UserSettings"); myCookie.Expires = DateTime.Now.AddDays(-1d); Response.Cookies.Add(myCookie); }
No comments:
Post a Comment