Guest User

Untitled

a guest
Feb 19th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. HttpCookie currentUserCookie = HttpContext.Current.Request.Cookies["currentUser"];
  2. HttpContext.Current.Response.Cookies.Remove("currentUser");
  3. currentUserCookie.Expires = DateTime.Now.AddDays(-10);
  4. currentUserCookie.Value = null;
  5. HttpContext.Current.Response.SetCookie(currentUserCookie);
Add Comment
Please, Sign In to add comment