SessionIDManager::InitializeRequest Method (HttpContext^, Boolean, Boolean%)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Performs per-request initialization of the SessionIDManager object.

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

virtual bool InitializeRequest(
	HttpContext^ context,
	bool suppressAutoDetectRedirect,
	[OutAttribute] bool% supportSessionIDReissue
) sealed


Type: System.Web::HttpContext^

The HttpContext object that contains information about the current request.

Type: System::Boolean

true to redirect to determine cookie support; otherwise, false to suppress automatic redirection to determine cookie support.

Type: System::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.

Return Value

Type: System::Boolean

true to indicate the SessionIDManager object has done a redirect to determine cookie support; otherwise, false.

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.

.NET Framework
Available since 2.0
Return to top