System.Web.Configuration.PagesEnableSessionState Enumeration

Used to determine session-state activation for a single Web page or an entire Web application.

Syntax

public enum PagesEnableSessionState

Remarks

This enumeration determines session-state activation for an entire Web application. This value can be used in the pages configuration-file section to affect all .aspx pages in the Web application for the scope of the configuration file. The System.Web.Configuration.PagesSection type allows programmatic access to the pages configuration section.

Members

Member NameDescription
False

Session state is disabled.

ReadOnly

Session state is enabled, but not writable.

True

Session state is enabled.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0