Internet Direct (Indy) Version 9.0.2 Beta
TIdCookies.Add
Creates a Cookie class instance to be added to the Cookie collection.

function Add: TIdCookieRFC2109;
Returns
TIdCookieRFC2109 - Cookie class instance added to the collection.

Description
Add is a TIdCookieRFC2109 function that creates a new instance of TIdCookieRFC2109 to be added to the Cookie collection. Add creates the Cookie class instance using the TIdCookies object instance as the owner of the collection item.

Add is called from the TIdCookieManager.AddCookie method when a CookieName and Domain are added to an HTTP client as an TIdCookieRFC2109 class instance.