[This is preliminary documentation and subject to change]

AspAllowSessionState

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.

note Note    The @ENABLESESSIONSTATE directive can be used to override this metabase setting.

Attribute NameAttribute Value
Data TypeBOOL
AttributesINHERIT
Default ValueTRUE
MetaFlagsExCACHE_PROPERTY_MODIFIED
User TypeASP_MD_UT_APP
StartingNumber
EndingNumber0
ID7011

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer
/LM/W3SVCIIsWebService
/LM/W3SVC/1/ROOTIIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_binIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdminIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelpIIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADCIIsWebVirtualDir
/LM/W3SVC/1/ROOT/ScriptsIIsWebVirtualDir
/LM/W3SVC/2/ROOTIIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdminIIsWebVirtualDir

IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier
MD_ASP_ALLOWSESSIONSTATE
Data typeBOOL
User typeASP_MD_UT_APP

© 1997-2001 Microsoft Corporation. All rights reserved.