Good, so I really think I'm doing it right, but cookies are not cleared.
Session.Clear(); HttpCookie c = Request.Cookies["MyCookie"]; if (c != null) { c = new HttpCookie("MyCookie"); c["AT"] = null; c.Expires = DateTime.Now.AddDays(-1); Request.Cookies.Add(c); } return RedirectToAction("Index", "Home");
When the redirect occurs, it finds the cookie again and moves on, as if I had never logged out. Any thoughts?
c # cookies asp.net-mvc-3
David Feb 25 '11 at 20:44 2011-02-25 20:44
source share