Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpCookie currentUserCookie = HttpContext.Current.Request.Cookies["currentUser"];
- HttpContext.Current.Response.Cookies.Remove("currentUser");
- currentUserCookie.Expires = DateTime.Now.AddDays(-10);
- currentUserCookie.Value = null;
- HttpContext.Current.Response.SetCookie(currentUserCookie);
Add Comment
Please, Sign In to add comment