Internet Direct (Indy) Version 9.0.1 Beta
TIdHTTPDefaultSessionList.CreateSession
Adds a new HTTP session to the thread-safe container.

function CreateSession(const RemoteIP: String; const SessionID: String): TIdHTTPSession; override;
Parameters
const RemoteIP: String
The peer IP address for the session.

const SessionID: String
The identifier for the session.

Returns
TIdHTTPSession - The session object reference.

Description
CreateSession is a TIdHTTPSession function used to create a new persistent HTTP session, and add the new session to the container. CreateSession constructs a new TIdHTTPSession using the values specified in RemoteIP and SessionID. RemoteIP is the IP address of the remote computer system that is the endpoint for the HTTP session. SessionID is the identifier for the new HTTP session.

CreateSession is used by TIdHTTPServer to retrieve a new HTTP session when a new client connection is established.