Name
SessionStateMode
Synopsis
This enumeration allows you to identify the type of ASP.NET session
storage by using the HttpSessionState.Mode
property. It also allows you to specify it by using the mode
attribute of the <sessionState>
tag in the
web.config
file (for example, <sessionState mode="SQLServer">
).
Session state can be stored locally in the ASP.NET process
(InProc
, the method used in traditional ASP
applications), in a separate server (StateServer
),
or serialized to a temporary table in an SQL Server database
(SQLServer
), which the ASP.NET worker processes
access and manage automatically. Note that both StateServer
and SQLServer
methods
allow state to be shared across servers in web farm/web garden
scenarios and retained in the case of a server restart.
Public Enum SessionStateMode Off = 0 InProc = 1 StateServer = 2 SQLServer = 3 End Enum
Hierarchy
System.Object→System.ValueType→ System.Enum(System.IComparable
, System.IFormattable
, System.IConvertible)→ SessionStateMode
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.