SessionIDManager.SaveSessionID Method (HttpContext, String, Boolean, Boolean)
Saves a newly created session identifier to the HTTP response.
Assembly: System.Web (in System.Web.dll)
Public Sub SaveSessionID ( context As HttpContext, id As String, <OutAttribute> ByRef redirected As Boolean, <OutAttribute> ByRef cookieAdded As Boolean )
- Type: System.Web.HttpContext
The session identifier.
When this method returns, contains a Boolean value that is true if the response is redirected to the current URL with the session identifier added to the URL; otherwise, false.
When this method returns, contains a Boolean value that is true if a cookie has been added to the HTTP response; otherwise, false.
The response has already been sent.
The session ID passed to this method failed validation.
This method is not intended to be called from application code.
The SessionStateModule object during the AcquireRequestState event. The method stores the session identifier in either the URL (when cookieless session state is used) or in a non-expiring session cookie.method is called by the
By default, the SessionIDManager places a unique session identifier into a non-expiring session cookie and sets the cookieAdded parameter to true.
For a cookieless session state, the SessionIDManager object inserts a unique session identifier into the current URL, redirects the browser to the new URL that includes the session identifier, and then sets the redirected parameter to true.
Available since 2.0