System.Web.SessionState.HttpSessionStateContainer Class

Contains session-state values as well as session-level settings for the current request.

See Also: HttpSessionStateContainer Members

Syntax

public class HttpSessionStateContainer : IHttpSessionState

Remarks

ASP.NET provides session-state management to enable you to store information associated with a unique browser session across multiple requests. You can store a collection of values referenced by a key name or by numerical index. Access to session values and functionality is available using the System.Web.SessionState.HttpSessionState class, which is accessible through the System.Web.HttpContext.Session property of the current System.Web.HttpContext or the System.Web.UI.Page.Session property of the System.Web.UI.Page. The System.Web.SessionState.HttpSessionState class accesses session-state values and session-level settings by referencing a session-state container, which is an implementation of the System.Web.SessionState.IHttpSessionState interface that has been populated with session-state data and added to the System.Web.HttpContext of the current request by the session-state module for the System.Web.HttpApplication.

The System.Web.SessionState.HttpSessionState class calls the System.Web.SessionState.HttpSessionStateContainer class, which manages session settings and values in memory.

The System.Web.SessionState.HttpSessionStateContainer class is the ASP.NET implementation of the System.Web.SessionState.IHttpSessionState interface. The System.Web.SessionState.HttpSessionStateContainer class is not intended to be called from application code. If you replace the System.Web.SessionState.SessionStateModule with a custom session-state module, you can use the System.Web.SessionState.HttpSessionStateContainer class, or supply your own implementation of the System.Web.SessionState.IHttpSessionState interface.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0