A
Andy Fish
Hi,
I have an asp.net application that is using Forms Authentication and
maintaining http session state using cookies in the normal way.
when the user clicks the logout button I do this:
Session.Clear();
Session.Abandon();
FormsAuthentication.SignOut();
Response.Redirect("Default.aspx")
This in turn causes Forms Authentication to redirect them to the login page.
AFAIK this is standard practice.
However, If the user immediately logs back in again from the same browser
window they get the same SessionId. how so?
I thought Session Ids were supposed to be unique? Has the session ID been
re-used again already or was is not cleared?
TIA for any thoughts.
Andy
I have an asp.net application that is using Forms Authentication and
maintaining http session state using cookies in the normal way.
when the user clicks the logout button I do this:
Session.Clear();
Session.Abandon();
FormsAuthentication.SignOut();
Response.Redirect("Default.aspx")
This in turn causes Forms Authentication to redirect them to the login page.
AFAIK this is standard practice.
However, If the user immediately logs back in again from the same browser
window they get the same SessionId. how so?
I thought Session Ids were supposed to be unique? Has the session ID been
re-used again already or was is not cleared?
TIA for any thoughts.
Andy