Microsoft KB Archive/233477

= PRB: Session.Timeout Has a Maximum of 24 Hours =

Article ID: 233477

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Active Server Pages 4.0
 * Microsoft Internet Information Services 6.0
 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q233477



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

If you set Session.Timeout in an ASP script or in the Global.asa file, 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 property 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 following article number to view the article in the Microsoft Knowledge Base:

175167 How to store state in Active Server Pages applications

157906 How to maintain state across pages with VBScript



MORE INFORMATION
To access the Session.Timeout value for the Web site, follow these steps:

Microsoft Windows 2000

 * 1) Start Microsoft Internet Information Services (IIS) Manager.
 * 2) In the Internet Information Services window, expand the   node, where   is the name of the server.
 * 3) Right-click Default Web Site, and then click Properties.
 * 4) In the Default Web Site Properties dialog box, on the Home Directory tab, click Configuration.
 * 5) In the Application Configuration dialog box, on the Options tab, the session timeout box displays the Session.Timeout value.

Microsoft Windows Server 2003

 * 1) Start Internet Information Services Manager, or open the IIS snap-in.
 * 2) In the Internet Information Services window, expand the   node, where   is the name of the server.
 * 3) Expand the Web Sites node.
 * 4) Right-click Default Web Site, and then click Properties.
 * 5) In the Default Web Site Properties dialog box, on the Home Directory tab, click Configuration.
 * 6) In the Application Configuration dialog box, on the Options tab, the session timeout box displays the Session.Timeout value.

Note If Internet Information Services 6.0 is installed on your computer, you can also view the Session.Timeout property value in the AspSessionTimeout property of the Metabase. The Metabase is a hierarchical store of IIS configuration information that is stored as an .xml file that is named MetaBase.xml. MetaBase.xml is located in the \System32\Inetsrv folder. Only users who are members of the Administrators group can view and can modify these files.



STATUS
This behavior is by design.

Keywords: kberrmsg kbprb KB233477

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.