Main Page

  Previous Section Next Section


System.Web.SessionState (system.web.dll)enum

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


System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) SessionStateMode

Returned By


      Previous Section Next Section