AI OnAI Off
The easy way around the problem is to redirect after running that code. You will still have Request.Cookies and possibly other authentication-related stuff lying around in the request you're in that you might not be able to clear.
Hi all,
I have a logout button in one of my templates with the following code:
Session.Abandon();
Response.Cookies.Clear();
FormsAuthentication.SignOut();
However, when I check the HTTPContext.Current.User property after calling this code, I see that the user is still authenticated.
Am I missing something here? Once the user logs out, I would like all information held on the user to be cleared.
Thank you