Topic Path: Symbol Reference > Types > TIdHTTPInvalidSessionEvent Type
ContentsIndexHome
PreviousUpNext
TIdHTTPInvalidSessionEvent Type

Event type signalled when an HTTP session cannot be restored using the session ID Cookie.

File
TIdHTTPInvalidSessionEvent = procedure (AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var VContinueProcessing: Boolean; const AInvalidSessionID: String) of object;
Parameters 
Description 
AContext 
Client session generating the event notification.
 
ARequestInfo 
Header sent in the client request.
 
AResponseInfo 
Header to include in a response.
 
ContinueProcessing 
Indicates that a new session can be created.
 
InvalidSessionID 
Session ID found in a Request Cookie. 

TIdHTTPInvalidSessionEvent is an event type signalled when an HTTP server cannot locate an existing TIdHTTPSession for a threaded client connection having the session identifier specified in InvalidSessionID. 

TIdHTTPInvalidSessionEvent is the type used to represent the TIdCustomHTTPServer.OnInvalidSession property, and is signalled when a threaded client attempts to execute using an existing session in the TIdHTTPSessionList. Sessions are restored using the GSessionID Cookie in the HTTP Request. 

An event handler for the TIdHTTPInvalidSessionEvent notification can set ContinueProcessing to True to allow the HTTP server to create a new HTTP session for the client.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.