IHttpSessionState.Abandon Method
.NET Framework 3.0
Ends the current session.
Namespace: System.Web.SessionState
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following code example implements the Abandon method of the IHttpSessionState interface. The code example duplicates the behavior of the HttpSessionStateContainer class in that it adds an IsAbandoned property that is set to true when the Abandon method is called. The IsAbandoned property is checked by the session-state module during the ReleaseRequestState event to determine whether the session has been abandoned, and the session-state module clears out session data and executes the Session_OnEnd event.
Community Additions
ADD
Show: