SessionStateMode

SessionStateModeserializable

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 }

Hierarchy

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

Returned By

HttpSessionState.Mode



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net