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 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 |
|HttpSessionState ||Provides access to session-state values as well as session-level settings and lifetime management methods. |
|SessionStateModule ||Provides session-state services for an application. |
|Interface ||Description |
|IReadOnlySessionState ||Specifies that the target HTTP handler interface has read-only access to session-state values. This is a marker interface only and has no methods. |
|IRequiresSessionState ||Specifies that the target HTTP handler interface has read and write access to session-state values. This is a marker interface only and has no methods. |
.NET Framework Class Library