Internet Direct (Indy) Version 9.0.2 Beta
|
function GetSession(const SessionID: string; const RemoteIP: string): TIdHTTPSession; override;
GetSession will iteratively search through all sessions in the container until a session is located with the specified SessionID and RemoteIP. If RemoteIP contains an empty string, the first session with the same session identifier is used.
When a session is located for the session identifer and remote IP address, the session is timestamped for last access to prevent purging as a stale session.
The return value for GetSession can contain Nil when a session cannot be located with the specified values.
GetSession will unlock the internal thread list prior to exiting from the method.