Share via


AspSessionTimeout

AspSessionTimeout specifies, in minutes, the default amount of time that a Session object is maintained after the last request associated with the object is made. You can override this property in script by using the Timeout property of the ASP built-in Session object.

note Note You can use AspSessionTimeout to fine tune your ASP applications. Because Session objects consume memory resources, using this property to limit the lifetime of an individualSessionmakes your applications more scalable.

The Web service setting for this property is applicable to all in-process and pooled out-of-process application keys, at all levels. Metabase settings at the Web server level or lower ignores in-process and pooled out-of-process applications. However, settings at the Web server level or lower are used if that node is an isolated out-of-process application.

Attribute Name Attribute Value
XML Data Type DWORD
WMI Data Type
SINT32
ADSI Data Type DWORD
ABO Data Type DWORD
ABO Metabase identifier
MD_ASP_SESSIONTIMEOUT
Attributes INHERIT
Default Value 10
MetaFlagsEx CACHE_PROPERTY_MODIFIED
User Type ASP_MD_UT_APP
StartingNumber Not applicable
EndingNumber 0
ID 7007

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type
/LM/W3SVC/n/ROOT
/LM/W3SVC/n/ROOT/virtual_directory_name
IIsWebVirtualDir
/LM/W3SVC/n IIsWebServer
/LM/W3SVC IIsWebService
/LM/W3SVC/n/ROOT/physical_directory_name
/LM/W3SVC/n/virtual_directory_name/physical_directory_name
IIsWebDirectory

Code Example

For general code examples, please see Code Examples to Configure Metabase Properties

AspScriptTimeout