AspSession Class [IIS 7 and higher]

IIS 7.0

Configures properties related to ASP sessions.

class AspSession : EmbeddedObject

This class contains no methods.

The following table lists the properties exposed by the AspSession class.

Name

Description

AllowSessionState

A read/write boolean value. true if session state persistence is enabled for the ASP application; otherwise, false. The default is true.

KeepSessionIdSecure

A read/write boolean value. true if a session ID is sent as a secure cookie when it is assigned over a secure channel; otherwise, false. The default is true.

Max

A read/write uint32 value that specifies the maximum number of concurrent sessions that IIS will permit.

NoteNote:
Although the IIS_Schema.xml file specifies 4294967295 (unlimited) as the default for this property, the default returned by the WMI provider is -1.

Timeout

A read/write datetime value that specifies the default amount of time that a session object is maintained after the last request associated with the object is made. The default is 20 minutes.

This class contains no subclasses.

Instances of this class are contained in the Session property of the AspSection class.

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Show: