System.Web.SessionState.SessionStateUtility.RaiseSessionEnd Method

Executes the Session_OnEnd event defined in the Global.asax file for the ASP.NET application.

Syntax

public static void RaiseSessionEnd (IHttpSessionState session, object eventSource, EventArgs eventArgs)

Parameters

session
The System.Web.SessionState.IHttpSessionState implementation instance for the session that has ended.
eventSource
The event source object to supply to the Session_OnEnd event.
eventArgs
The EventArgs object to supply to the Session_OnEnd event.

Remarks

The SessionStateUtility.RaiseSessionEnd(IHttpSessionState, object, EventArgs) method is used by a session-state module to execute the Session_OnEnd event defined in the Global.asax file for an ASP.NET application. A session-state module will call the SessionStateUtility.RaiseSessionEnd(IHttpSessionState, object, EventArgs) method when a session has been abandoned, or if the session expires.

Requirements

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