re:
!> Have you checked the sessionID to verify that a different
!> sessionID has been established?
Steven,
There is an issue with SessionID, Internet Explorer and Firefox which consists in that,
if all instances of IE/Firefox aren't closed before attempting to create a new session,
the SessionID will be recycled ( the same SessionID will continue to be used ).
Easy repro :
1. Create a Session start time variable in global.asax:
Sub Session_OnStart()
Session.Contents("SessionStartTime") = Now
End Sub
2. Create a test page, SessionID.aspx :
<%@ Page Language="VB" %>
<html>
<head>
</head>
<body>
<script language="VB" runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Response.Write("Session ID : " & Session.SessionID)
Response.Write("<br />")
Response.Write(" Session start time : " & Session("SessionStartTime"))
End Sub
</script>
</body>
</html>
3. Set the session timeout in web.config to 1 minute :
<sessionState mode="InProc" cookieless="false" timeout="1" />
Now, close all instances of Internet Explorer/Firefox, except one and :
1. Run SessionID.aspx and note the Session ID and the time.
2. After 1 minute and 1 second, refresh the page.
The SessionID will be the same, but the Session start time will be different.
( The SessionID was recycled, but there is a new Session start time, so there's a new session )
3. Now, close Internet Explorer/Firefox and run the same page.
The SessionID will change.
This behavior must be taken into consideration when testing because,
if all browser windows aren't closed, the SessionID will be the same
....even though a new session exists.
I haven't tested other browsers, but suspect that, since IE
and Firefox exhibit the same behavior, the same will happen.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================