Topic Path: Symbol Reference > Classes > TIdCustomHTTPServer Class > TIdCustomHTTPServer Events > OnCreateSession Event
ContentsIndexHome
PreviousUpNext
TIdCustomHTTPServer.OnCreateSession Event

Event signalled when a session is needed a client connection.

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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.