Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPDefaultSessionList.Clear Method

Removes all HTTP sessions from the thread-safe session list.

Pascal
procedure Clear; override;

Clear is an overridden procedure used to remove all TIdHTTPSession objects in the thread-safe session list. 

Clear ensures that the internal thread list is locked prior to triggering the OnSessionEnd event handler for the session, clearing the session owner, and freeing the TIdHTTPSession instance from the list. 

Clear unlocks the internal thread list prior to exiting from the method.

TIdHTTPSession 

TIdHTTPSession.OnSessionEnd

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.