Internet Direct (Indy) Version 9.0.1 Beta
TIdHTTPInvalidSessionEvent
Event type signalled when an HTTP session cannot be restored using the session ID Cookie.

TIdHTTPInvalidSessionEvent = procedure (Thread: TIdPeerThread; RequestInfo: TIdHTTPRequestInfo; ResponseInfo: TIdHTTPResponseInfo; var ContinueProcessing: Boolean; const InvalidSessionID: String) of object;
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.