PRB: Session.Timeout Has a Max of 24 Hours

ID: Q233477


The information in this article applies to:


SYMPTOMS

Setting the Session.Timeout value to greater than 24 hours (1440 minutes) produces the following symptoms:

If you set the Session.Timeout in an ASP script or in the Global.asa, you see the following error messages:

- SessionID error 'ASP 0164 : 80004005'
Invalid TimeOut Value
/MyAsp.asp, line 2
An invalid TimeOut value was specified.
If you set the Script.Timeout value through either the Microsoft Management Console or directly in the metabase entry AspSessionTimeout, your Session variables are no longer valid when referenced after 24 hours.


CAUSE

The Session.TimeOut has a maximum of 24 hours (1440 minutes). Sessions variables are no longer valid past this time.


RESOLUTION

To work around this time limitation, you would pass values from ASP page to ASP page either through QueryString parameters or as hidden FORM fields. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

Q175167 HOWTO: Persisting Values Without Sessions
You can also maintain state on the client. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
Q157906 HOWTO: Maintain State Across Pages with VBScript


STATUS

This behavior is by design.

Additional query words:


Keywords          : kberrmsg kbASP kbASPObj kbGrpASP 
Version           : winnt:
Platform          : winnt 
Issue type        : kbprb 

Last Reviewed: August 3, 1999