Exportar (0) Imprimir
Expandir Tudo
Expandir Minimizar

AspAllowSessionState Metabase Property

The AspAllowSessionState property enables session state persistence for the ASP application. If the value is set to true, the server creates a new Session object for each connection, session state is accessible, session storage is allowed, Session_OnStart and Session_OnEnd occurs, and the ASPSessionID cookie is sent to the client. If the value is set to false, state access and storage are not allowed, events are not processed, and no cookie is sent.

noteObservação
The ASP page directive, @ENABLESESSIONSTATE, can be used to override this metabase property.

 

Attribute Name Attribute Value

XML Data Type

Boolean

WMI Data Type

Boolean

ADSI Data Type

Boolean

ABO Data Type

Boolean

ABO Metabase Identifier

MD_ASP_ALLOWSESSIONSTATE

Attributes

INHERIT

Default Value

true

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

ASP_MD_UT_APP

ID

7011

Configurable Locations

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

 

Metabase Path IIS Admin Object Type

/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

/LM/W3SVC/n

IIsWebServer

/LM/W3SVC

IIsWebService

/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name

IIsWebDirectory

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.

Isso foi útil para você?
(1500 caracteres restantes)
Agradecemos os seus comentários

Contribuições da comunidade

ADICIONAR
A Microsoft está realizando uma pesquisa online para saber sua opinião sobre o site do MSDN. Se você optar por participar, a pesquisa online lhe será apresentada quando você sair do site do MSDN.

Deseja participar?
Mostrar:
© 2014 Microsoft