SessionIDManager.InitializeRequest(HttpContext, Boolean, Boolean) 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.
Performs per-request initialization of the SessionIDManager object.
public:
virtual bool InitializeRequest(System::Web::HttpContext ^ context, bool suppressAutoDetectRedirect, [Runtime::InteropServices::Out] bool % supportSessionIDReissue);
public bool InitializeRequest (System.Web.HttpContext context, bool suppressAutoDetectRedirect, out bool supportSessionIDReissue);
abstract member InitializeRequest : System.Web.HttpContext * bool * bool -> bool
override this.InitializeRequest : System.Web.HttpContext * bool * bool -> bool
Public Function InitializeRequest (context As HttpContext, suppressAutoDetectRedirect As Boolean, ByRef supportSessionIDReissue As Boolean) As Boolean
Parameters
- context
- HttpContext
The HttpContext object that contains information about the current request.
- suppressAutoDetectRedirect
- Boolean
true
to redirect to determine cookie support; otherwise, false
to suppress automatic redirection to determine cookie support.
- supportSessionIDReissue
- Boolean
When this method returns, contains a Boolean that indicates whether the SessionIDManager object supports issuing new session IDs when the original ID is out of date. This parameter is passed uninitialized.
Returns
true
to indicate the SessionIDManager object has done a redirect to determine cookie support; otherwise, false
.
Implements
Remarks
When the cookieless
attribute of the sessionState
element is set to AutoDetect
, the SessionIDManager object will redirect to the same path to determine whether the connecting browser supports cookies. If the suppressAutoDetectRedirect
parameter is false
, the server will not perform this redirection.
The supportSessionIDReissue
parameter will be returned false
if the request is using cookies for session identification.
Applies to
.NET