Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTPServer.OnCreateSession
Event signalled when a session is needed a client connection.

property OnCreateSession: TOnCreateSession;
Description
OnCreateSession is a TOnCreateSession property that represents the event handler signalled when an HTTP session is needed for a threaded client connection. OnCreateSession is signalled when TIdHTTPServer.CreateSession is used and TIdHTTPServer.SessionState is True, and allows the server implementation to retrieve or create an HTTP session using the requirements or logic desired.

Applications must assign a procedure to the OnCreateSession event handler to allow responsing to the event notification. When OnCreateSession is unassigned, the HTTP server will use the TIdHTTPDefaultSessionList.CreateUniqueSession method to initialize an HTTP session.