System.Web.SessionState.ISessionIDManager.RemoveSessionID Method

Deletes the session identifier from the cookie or from the URL.

Syntax

public void RemoveSessionID (System.Web.HttpContext context)

Parameters

context
The current System.Web.HttpContext object that references server objects used to process HTTP requests (for example, the System.Web.HttpContext.Request and System.Web.HttpContext.Response properties).

Remarks

The System.Web.SessionState.SessionStateModule calls the SessionIDManager.RemoveSessionID(System.Web.HttpContext) method during the System.Web.HttpApplication.ReleaseRequestState event to remove the session identifier from the System.Web.HttpResponse.Cookies collection if a new session was created but was not used.

Requirements

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