System.Web.SessionState.SessionIDManager.RemoveSessionID Method

Deletes the session-identifier cookie from the HTTP response.

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

This method is not intended to be called from application code.

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 of the System.Web.HttpResponse 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