Last post Oct 24, 2013 09:35 PM by Angie xu - MSFT
Oct 24, 2013 06:58 AM|ssvikramuk|LINK
I have enabled login system for all my web pages. The problem with IE is even after deleting all the cookies it's not getting logged out. Can you please help me with this.
Oct 24, 2013 07:27 AM|CriticalError|LINK
They are getting logged out, I think it is a caching issue, if you do hard refresh CTRL+F5 you should be logged out. You can set no cache like this:
It happens to me all the time, quite annoying.
Oct 24, 2013 07:50 AM|ssvikramuk|LINK
i have setup the above resposne.cache.setnostore but still am facing the same problem. Please guide me.
Oct 24, 2013 08:05 AM|CriticalError|LINK
It's not 100% accurate some browsers even ignore it I think, I could not get it to work all the time to be honest. But the issue does sound like a caching issue, maybe someone else can shed some light.
Oct 24, 2013 09:35 PM|Angie xu - MSFT|LINK
We can't directly delete a cookie on a user's computer. However, you can direct the user's browser to delete the cookie by setting the cookie's expiration date to a past date.
To assign a past expiration date on a cookie
if (Request.Cookies["UserSettings"] != null)
HttpCookie myCookie = new HttpCookie("UserSettings");
myCookie.Expires = DateTime.Now.AddDays(-1d);
For detailed infomation:
# How to: Delete a Cookie: