Internet Direct (Indy) Version 9.0.1 Beta
TIdHTTPSession.CreateInitialized
Constructor for the object instance.

constructor CreateInitialized(AOwner: TIdHTTPCustomSessionList; const SessionID: string; const RemoteIP: string); virtual;
Parameters
AOwner: TIdHTTPCustomSessionList
Session list that owns the object instance.

const SessionID: string
Session identifier for the object instance.

const RemoteIP: string
IP address for the remote host for the session.

Description
CreateInitialized is the constructor for the object instance, and initializes properties for the HTTP session including SessionID, RemoteHost, Content, Owner, OnSessionStart, and LastTimestamp to their default values.

The session identifier is set to the value specified in SessionID. RemoteHost is set to the value specified in RemoteIP. LastTimeStamp is set the current date and time on the HTTP server. Owner is set to the TIdHTTPCustomSessionList specified in AOwner that owns the object instance.

The Content property is created, and the OnSessionStart event handler is assigned the value from the session list that owns the object instance.

CreateInitialized is called from TIdHTTPFefaultSessionList.CreateSession, where a new session is created and added to the session list for the server.