Indy 9
TOnCreateSession
Unit: IdCustomHTTPServer
Event type signalled when a HTTP session is needed for a client connection.
TOnCreateSession = procedure (ASender: TIdPeerThread; var VHTTPSession: TIdHTTPSession) of object;
Unit
IdCustomHTTPServer
Parameters
ASender
Client connection for the event notification.
VHTTPSession
HTTP session created for the client connection, or Nil.
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.


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