Internet Direct (Indy) Version 9.0.1 Beta
TOnCreateSession
Event type signalled when a HTTP session is needed for a client connection.

TOnCreateSession = procedure (ASender: TIdPeerThread; Var VHTTPSession: TIdHTTPSession) of object;
Description
TOnCreateSession is an event type signalled when a HTTP server needs to create a new HTTP session for a threaded client connection. TOnCreateSession is the event type signalled to the TIdHTTPServer.OnCreateSession event handler, and notifies the HTTP server implementation that a new HTTP session is needed to service a threaded client connection.

The HTTP server implementation must assign a procedure to TIdHTTPServer.OnCreateSession to allow responding to the event notification, or TIdHTTPServer.SessionList will be used to retrieve or create the HTTP session for the client thread.