Hi,
I've been trying to determine how the Session.Timeout value works. As I test I added code in Session.Start and Session.End to send an email containing some info. I'm setting Session.Timeout in code in Page_Load. With a value of 5 I get this from Session.Start:
Session ID: 05bdk3451d22iz23xyj3xhbz
Started at: 21/01/2009 19:53:57
and this from Session.End:
Session Timeout was: 5
Session Id: 05bdk3451d22iz23xyj3xhbz
Ended at: 21/01/2009 19:59:20
Both times are from DateTime.Now.ToString() and (roughly) as expected 5 mins apart. With the Timeout set to 30 mins I get:
Session ID: 1bdrtaawiycq5xrhzbgzdsqh
Started at: 21/01/2009 19:11:51
and
Session Timeout was: 30
Session Id: 1bdrtaawiycq5xrhzbgzdsqh
Ended at: 21/01/2009 19:31:58
Now, although the Session.Timeout is 30 minutes the actual elapsed time is (again roughly) 20 minutes. 20 Minutes is the default timeout and seems to be overriding the 30 minutes as set. In the first example the 5 minute Timeout is being honoured but in the second the default value seems to be used.
Any elucidation,
Regards,
Viv
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only