ISessionIDManager::InitializeRequest Method
Performs per-request initialization of the SessionIDManager object.
Assembly: System.Web (in System.Web.dll)
bool InitializeRequest( HttpContext^ context, bool suppressAutoDetectRedirect, [OutAttribute] bool% supportSessionIDReissue )
Parameters
- context
- Type: System.Web::HttpContext
The HttpContext object that contains information about the current request.
- suppressAutoDetectRedirect
- Type: System::Boolean
true if the session-ID manager should 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 ISessionIDManager object supports issuing new session IDs when the original ID is out of date. This parameter is passed uninitialized.
Session ID reuse is appropriate when the session-state ID is encoded on a URL and the potential exists for the URL to be shared or emailed.
If a custom session-state implementation partitions cookies by virtual path, session state should also be supported.
Return Value
Type: System::Booleantrue to indicate that the initialization performed a redirect; otherwise, false.
The InitializeRequest method is called for each request handled by the ISessionIDManager object. Use the InitializeRequest method to initialize per-request data for the SessionIDManager object.
When the suppressAutoDetectRedirect parameter is true, the ISessionIDManager object should not use redirection to determine whether the browser supports cookies.
The supportSessionIDReissue parameter should be returned false if cookies are used for session identification; otherwise, return true if your ISessionIDManager implementation supports re-issuing session IDs.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.