Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPInvalidSessionEvent Type

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

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

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.