AspSession Class [IIS 7 and higher]
Configures properties related to ASP sessions.
Syntax
class AspSession : EmbeddedObject
Methods
This class contains no methods.
Properties
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.
Note:
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. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are contained in the Session property of the AspSection class.
Inheritance Hierarchy
AspSession
Requirements
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |
See Also
Reference
AspCache Class [IIS 7 and higher]
AspComPlus Class [IIS 7 and higher]
AspLimits Class [IIS 7 and higher]
AspSection Class [IIS 7 and higher]
EmbeddedObject Class [IIS 7 and higher]