Topic Path: Symbol Reference > Classes > TIdCustomHTTPServer Class > TIdCustomHTTPServer Properties > AutoStartSession Property
ContentsIndexHome
PreviousUpNext
TIdCustomHTTPServer.AutoStartSession Property

Requests a new session when an existing session is not found.

property AutoStartSession: boolean;

AutoStartSession is a Boolean property that indicates a new HTTP session should be created when a persistent HTTP session does not exist in SessionList

AutoStartSession is used when a session for the HTTP client connection is executed, and SessionState indicates that persistent sessions are maintained on the HTTP server. 

AutoStartSession allows CreateSession to be called when an HTTP session cannot be found in SessionList containing the GSessionIDCookie for the client IP address. 

Even when AutoStartSession is True, CreateSession will not be called when OnInvalidSession indicates that the session should not be allowed to continue execution. 

The default value for AutoStartSession is Id_TId_HTTPAutoStartSession as assigned in the Create constructor.

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