Indy 9 | Content | Index | Reference

TIdHTTPInvalidSessionEvent
Unit: IdCustomHTTPServer
Event type signalled when an HTTP session cannot be restored using the session ID Cookie.

    TIdHTTPInvalidSessionEvent = procedure (Thread: TIdPeerThread; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var VContinueProcessing: Boolean; const AInvalidSessionID: String) of object;

Unit
IdCustomHTTPServer
Parameters
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.
Thread
Client connection generating the event notification.
Description
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 TIdHTTPServer.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.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.