Internet Direct (Indy) Version 9.0.2 Beta
|
procedure AddCookie(ACookie: TIdCookieRFC2109);
If a Cookie having the Domain and CookieName specified in ACookie already exists in the collection, the Cookie value is assigned to the existing TIdCookieRFC2109 object instance and ACookie is freed. Otherwise, ACookie is added to the Cookie list for the specified Domain and CookieName.
AddCookie is called by TIdCookieManager when a Cookie is added to the collection maintained by an HTTP client.