Topic Path: Symbol Reference > Classes > TIdCustomHTTPServer Class > TIdCustomHTTPServer Methods > EndSession Method
TIdCustomHTTPServer.EndSession Method

Frees the named HTTP session.

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

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

EndSession is a Boolean function that allows the HTTP server to free the TIdHTTPSession using the name specified in SessionName. 

EndSession attempts to locate the TIdHTTPSession in SessionList that has a SessionID matching SessionName. When a session is found that matches SessionName, it is freed from the SessionList and the return value for the method is set to True. 

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

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.