Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPDefaultSessionList.Add Method

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

Pascal
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.

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.