SessionIDManager.GetSessionID(HttpContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the session-identifier value from the current Web request.
public:
virtual System::String ^ GetSessionID(System::Web::HttpContext ^ context);
public string GetSessionID (System.Web.HttpContext context);
abstract member GetSessionID : System.Web.HttpContext -> string
override this.GetSessionID : System.Web.HttpContext -> string
Public Function GetSessionID (context As HttpContext) As String
Parameters
- context
- HttpContext
The current HttpContext object that references server objects used to process HTTP requests (for example, the Request and Response properties).
Returns
The current SessionID.
Implements
Exceptions
The length of the session-identifier value retrieved from the HTTP request exceeds the SessionIDMaxLength value.
Remarks
This method is not intended to be called from application code.
The SessionStateModule calls the GetSessionID method during the AcquireRequestState event to retrieve the SessionID from the current HttpRequest.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor