Topic Path: Symbol Reference > Classes > TIdHTTPDefaultSessionList Class > TIdHTTPDefaultSessionList Methods > Clear Method
ContentsIndexHome
PreviousUpNext
TIdHTTPDefaultSessionList.Clear Method

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

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

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