This property enables session state persistence for the ASP application. If the value is TRUE, the server will create a new Session object for each connection. Session state will be accessible, session storage will be allowed, the Session_OnStart and Session_OnEnd will occur, and the ASPSessionID cookie will be sent to the client. If the value is FALSE, state access and storage are not allowed, events are not processed, and no cookie is sent.
The @ENABLESESSIONSTATE directive can be used to override this metabase setting.
Data type | Boolean |
Default value | TRUE |
Inheritance | Inheritable |
This property is accessible at the following locations:
Metabase Path | Key Type |
/LM/W3SVC | IIsWebService |
/LM/W3SVC/N | IIsWebServer |
/LM/W3SVC/N/ROOT | IIsWebVirtualDir |
/LM/W3SVC/N/ROOT/WebVirtualDir | IIsWebVirtualDir |
/LM/W3SVC/N/ROOT/WebVirtualDir/WebDirectory | IIsWebDirectory |
The following table lists additional information required only for code that uses the IIS Admin Base Object.
Metabase identifier | MD_ASP_ALLOWSESSIONSTATE |
User type | ASP_MD_UT_APP |