Export (0) Print
Expand All

SessionIDManager.InitializeRequest Method

Performs per-request initialization of the SessionIDManager object.

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

'Declaration
Public Function InitializeRequest ( _
	context As HttpContext, _
	suppressAutoDetectRedirect As Boolean, _
	<OutAttribute> ByRef supportSessionIDReissue As Boolean _
) As Boolean

Parameters

context
Type: System.Web.HttpContext

The HttpContext object that contains information about the current request.

suppressAutoDetectRedirect
Type: System.Boolean

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

supportSessionIDReissue
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.

Implements

ISessionIDManager.InitializeRequest(HttpContext, Boolean, Boolean)

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

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft