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)

public bool InitializeRequest (
	HttpContext context,
	bool suppressAutoDetectRedirect,
	out bool supportSessionIDReissue
)
public final boolean InitializeRequest (
	HttpContext context, 
	boolean suppressAutoDetectRedirect, 
	/** @attribute OutAttribute() */ /** @ref */ boolean supportSessionIDReissue
)
Not applicable.

Parameters

context

The HttpContext object that contains information about the current request.

suppressAutoDetectRedirect

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

supportSessionIDReissue

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

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft