System.Web.SessionState Namespace

The System.Web.SessionState namespace supplies 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.

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.

Classes

TypeReason
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.

IHttpSessionState

Defines the contract to implement a custom session-state container.

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.

IStateRuntime

Defines the interface used by the ASP.NET state service to manage session data.

SessionIDManager

Manages unique identifiers for ASP.NET session state.

SessionStateActions

Identifies whether a session item from a data store is for a session that requires initialization.

SessionStateItemCollection

A collection of objects stored in session state. This class cannot be inherited.

SessionStateItemExpireCallback

Represents the method that handles the System.Web.SessionState.SessionStateModule.End event of a session-state module.

SessionStateMode

Specifies the session-state mode.

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.