PRB: Session.Timeout Has a Max of 24 Hours

ID: Q233477


The information in this article applies to:
  • Active Server Pages
  • Microsoft Internet Information Server versions 4.0, 5.0


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 kbiis400 kbiis500
Version : winnt:
Platform : winnt
Issue type : kbprb


Last Reviewed: December 8, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.