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.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om