PagesEnableSessionState Enumeration
Used to determine session-state activation for a single Web page or an entire Web application.
Assembly: System.Web (in System.Web.dll)
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 PagesSection type allows programmatic access to the pages configuration section.
The following configuration file excerpt shows how to declaratively use values of the PagesEnableSessionState enumeration to specify whether the session state is enabled.
<system.web> <pages enableSessionState="true" /> </system.web>
The following code example shows how to use the PagesEnableSessionState enumeration with the PagesSection type.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.