共用方式為


AspSessionTimeout

The AspSessionTimeout property 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

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 individual Session makes your applications more scalable.

Setting this property at the IIsWebService level applies to all in-process and pooled out-of-process application keys, at all levels. Metabase settings at the IIsWebServer level or lower are ignored for in-process and pooled out-of-process applications. However, settings at the IIsWebServer level or lower are used if that key is an isolated out-of-process application.

This property is an application-level property.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

DWORD

ABO Data Type

DWORD_METADATA

Schema Default

10

Internal Default

20

Upper Bound

0

Lower Bound

Not specified

Internal ID

7007

Friendly ID

MD_ASP_SESSIONTIMEOUT

Property Attributes

INHERIT

User Type

ASP_MD_UT_APP

Configurable Locations

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

Metabase Path

IIS Admin Object Type

/LM/W3SVC

IIsWebService

/LM/W3SVC/n

IIsWebServer

/LM/W3SVC/n/ROOT/physical_directory_name

/LM/W3SVC/n/virtual_directory_name/physical_directory_name

IIsWebDirectory

/LM/W3SVC/n/ROOT

/LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

Flags

There are no flags for this property.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also