Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

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.

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.

  Class Description
Public class HttpSessionState Provides access to session-state values as well as session-level settings and lifetime management methods.
Public class HttpSessionStateContainer Contains session-state values as well as session-level settings for the current request.
Public class SessionIDManager Manages unique identifiers for ASP.NET session state.
Public class SessionStateItemCollection A collection of objects stored in session state. This class cannot be inherited.
Public class SessionStateModule Provides session-state services for an application. This class cannot be inherited.
Public class SessionStateStoreData Represents session-state data for a session store.
Public class SessionStateStoreProviderBase Defines the required members of a session-state provider for a data store.
Public class 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.
Public class StateRuntime Manages session data stored in the ASP.NET state service. This class cannot be inherited.
  Interface Description
Public interface IHttpSessionState Defines the contract to implement a custom session-state container.
Public interface 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.
Public interface IReadOnlySessionState Specifies that the target HTTP handler requires only read access to session-state values. This is a marker interface and has no methods.
Public interface 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.
Public interface ISessionIDManager Defines the contract that a custom session-state identifier manager must implement.
Public interface ISessionStateItemCollection Defines the contract for the collection used by ASP.NET session state to manage session.
Public interface IStateRuntime Defines the interface used by the ASP.NET state service to manage session data.
  Delegate Description
Public delegate SessionStateItemExpireCallback Represents the method that handles the End event of a session-state module.
  Enumeration Description
Public enumeration SessionStateActions Identifies whether a session item from a data store is for a session that requires initialization.
Public enumeration SessionStateBehavior Specifies the type of session support that is required in order to handle a request.
Public enumeration SessionStateMode Specifies the session-state mode.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.