Export (0) Print
Expand All

SessionStateModule Class

Provides session-state services for an application. This class cannot be inherited.

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

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SessionStateModule _
	Implements IHttpModule
'Usage
Dim instance As SessionStateModule

SessionStateModule is ASP.NET's default session-state handler. It writes session data to and retrieves it from the session-state store and raises the Session_OnStart and Session_OnEnd events. For details about how to use ASP.NET session state to store and retrieve values for a user session, see ASP.NET Session State Overview.

You can replace the SessionStateModule with a custom implementation of the IHttpModule interface that manages session state. For an example of a custom session-state module, see the SessionStateUtility class overview.

System.Object
  System.Web.SessionState.SessionStateModule

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft