Internet Direct (Indy)
Home
PreviousUpNext
TIdCustomHTTPServer.EndSession Method

Frees the named HTTP session.

Pascal
function EndSession(
    const SessionName: string
): boolean;
Parameters 
Description 
SessionName 
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.