Event type signalled when a HTTP session is needed for a client connection.
TOnCreateSession = procedure (ASender:TIdContext; var VHTTPSession: TIdHTTPSession) of object;
Parameters |
Description |
ASender |
Client connection for the event notification. |
VHTTPSession |
HTTP session created for the client connection, or Nil. |
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 TIdCustomHTTPServer.OnCreateSession event handler, and notifies the HTTP server implementation that a new HTTP session is needed to service a client connection.
The HTTP server implementation must assign a procedure to TIdCustomHTTPServer.OnCreateSession to allow responding to the event notification, or TIdHTTPServer.SessionList will be used to retrieve or create the HTTP session for the client connection.
TIdCustomHTTPServer.OnCreateSession
TIdHTTPServer.SessionList
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |