Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTPCustomSessionList.GetSession
Retrieves a HTTP session from the session list.

function GetSession(const SessionID: string; const RemoteIP: string): TIdHTTPSession; virtual; abstract;
Parameters
const SessionID: string
The identifier for the session.

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

Returns
TIdHTTPSession - The session object reference, or Nil.

Description
GetSession is an abstract virtual TIdHTTPSessionList function that specifies the mechanism used to retrieve an existing HTTP session from the session list using values specified in SessionID and RemoteIP. 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.