Internet Direct (Indy)
Home
PreviousUpNext
TIdCustomHTTPServer.OnCreateSession Event

Event signalled when a session is needed a client connection.

Pascal
property OnCreateSession: TOnCreateSession;
Parameters 
Description 
ASender 
THread of execution for the threaded client connection.
 
VHTTPSession 
HTTP session for the event notification. 

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 TIdCustomHTTPServer.CreateSession is used and TIdCustomHTTPServer.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 responding to the event notification. When OnCreateSession is unassigned, the HTTP server will use the TIdHTTPDefaultSessionList.CreateUniqueSession method to initialize an HTTP session.

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.