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

Adds a persistent HTTP session to the thread-safe container.

procedure Add(
    ASession: TIdHTTPSession
); override;
Parameters 
Description 
ASession 
HTTP session to be added to the container. 

Add is an overridden procedure in TIdHTTPDefaultSessionList, and adds the persistent HTTP session specified in ASession to the thread-safe container. 

Add calls the Add method for the internal TThreadList to store persistent sessions in the session list. 

Use GetSession to retrieve a session added to the container using Add. 

Use RemoveSession to delete a session from the container. 

Use CreateSession or CreateUniqueSession to create a new session and Add it to the session list.

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