Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTPServer.EndSession
Frees the named HTTP session.

function EndSession(const SessionName: string): boolean;
Parameters
const SessionName: string
Identifier of the session to be freed.

Returns
Boolean - True when the named session is found and freed.

Description
EndSession is a Boolean function that allows the HTTP server to locate a TIdHTTPSession with the SessionID specified in SessionName, and free the session instance.

EndSession uses SessionList.GetSession to find the named session. If a valid session reference is retrieved, the session is freed.