System.Web.SessionState.SessionIDManager.GetSessionID Method

Gets the session-identifier value from the current Web request.

Syntax

public string GetSessionID (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).

Returns

The current HttpSessionState.SessionID.

Remarks

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

The System.Web.SessionState.SessionStateModule calls the SessionIDManager.GetSessionID(System.Web.HttpContext) method during the System.Web.HttpApplication.AcquireRequestState event to retrieve the HttpSessionState.SessionID from the current System.Web.HttpRequest.

Requirements

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