Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.24 KB | None | 0 0
  1. string cookieName = Request.Cookies[0].Name;
  2.         HttpCookie aCookie = new HttpCookie(cookieName);
  3.         aCookie.Expires = DateTime.Now.AddDays(-1);
  4.         Response.Cookies.Add(aCookie);
  5.  
  6.         Response.Redirect("~/default.aspx");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement