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

Specifies the mechanism used to add an HTTP session to the session list.

procedure Add(
    ASession: TIdHTTPSession
); virtual; abstract;
Parameters 
Description 
ASession 
HTTP session to add to the container. 

Add is an abstract virtual method that specifies the method used to add the HTTP session in ASession to the session list. 

All methods in TIdHTTPCustomSessionList are declared as virtual abstract procedures and functions, and must be overridden in a descendant class to provide access to the storage mechanism for sessions in the container. 

Use CreateSession or CreateUniqueSession to initialize a new session maintained in the session list. 

Use Clear to remove all sessions stored in the list.

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