Hi,
I'm trying to logout a user and managed to do so in different ways:
A simple Formsauthentication.Signout()
Clearing the session variables (System.Web.HttpContext.Current.Session.Clear)
Abandoning the session (System.Web.HttpContext.Current.Session.Abandon)
Force the cookies to expire (adding the expired cookie to the httpcontext.current.response)
On one machine, all of these methods will successfully log out the user. On another machine none of these methods work.
I am sure that above code runs in both cases, but in the second case the httpcontext.current.user remains as the first logged in user.
I have not found any differences between the two servers when searching the IIS 7.5 manager. Are there any other settings that would prohibit the cookies or session variables from being cleared?
...
Go to the complete details ...