Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTPCustomSessionList.CreateSession
Specifies the mechanism to create a new HTTP session.

function CreateSession(const RemoteIP: String; const SessionID: String): TIdHTTPSession; virtual; abstract;
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 an abstract virtual TIdHTTPSession function that specifies the mechanism used to create a new HTTP session, and add the new session to the session list.

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.

Note: All methods in TIdHTTPCustomSessionList are declared as virtual abstract procedures and functions, and must be overridden in a descendant class to provide the session management capabilities required.