System.Web.SessionState Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides classes and interfaces that enable storage of data specific to a single client within a web application on the server. The session-state data is used to give the client the appearance of a persistent connection with the application. State information can be stored within local process memory or, for web farm configurations, it can be stored out of process using either the ASP.NET State service or a Microsoft SQL Server database.
Classes
HttpSessionState |
Provides access to session-state values as well as session-level settings and lifetime management methods. |
HttpSessionStateContainer |
Contains session-state values as well as session-level settings for the current request. |
SessionIDManager |
Manages unique identifiers for ASP.NET session state. |
SessionStateItemCollection |
A collection of objects stored in session state. This class cannot be inherited. |
SessionStateModule |
Provides session-state services for an application. This class cannot be inherited. |
SessionStateStoreData |
Represents session-state data for a session store. |
SessionStateStoreProviderBase |
Defines the required members of a session-state provider for a data store. |
SessionStateUtility |
Provides helper methods used by session-state modules and session-state store providers to manage session information for an ASP.NET application. This class cannot be inherited. |
StateRuntime |
Manages session data stored in the ASP.NET state service. This class cannot be inherited. |
Interfaces
IHttpSessionState |
Defines the contract to implement a custom session-state container. |
IPartialSessionState |
When implemented in a type, returns a list of zero or more session keys that indicate to a session-state provider which session-state items have to be retrieved. |
IReadOnlySessionState |
Specifies that the target HTTP handler requires only read access to session-state values. This is a marker interface and has no methods. |
IRequiresSessionState |
Specifies that the target HTTP handler requires read and write access to session-state values. This is a marker interface and has no methods. |
ISessionIDManager |
Defines the contract that a custom session-state identifier manager must implement. |
ISessionStateItemCollection |
Defines the contract for the collection used by ASP.NET session state to manage session. |
ISessionStateModule |
Defines the interface for managing session state modules. |
IStateRuntime |
Defines the interface used by the ASP.NET state service to manage session data. |
Enums
SessionStateActions |
Identifies whether a session item from a data store is for a session that requires initialization. |
SessionStateBehavior |
Specifies the type of session support that is required in order to handle a request. |
SessionStateMode |
Specifies the session-state mode. |
Delegates
SessionStateItemExpireCallback |
Represents the method that handles the End event of a session-state module. |
Remarks
Session state can be used with clients that do not support cookies. ASP.NET can be configured to encode a session ID in the URL string that is transmitted between the client and the server.