Internet Direct (Indy) Version 9.0.2 Beta
TIdServerCookies.Cookie
Provides access to server Cookie collection items by name.

property Cookie [const AName: string]: TIdCookieRFC2109;
Description
Cookie is a read-only TIdCookieRFC2109 property that provides access to server Cookies in the collection using the name specified in AName. TIdServerCookies calls GetCookieIndex, when using the read access specifier for Cookie, to determine the position of the Cookie having the specified CookieName. Cookie can return Nil when a Cookie cannot be located in the collection having the specified name value.

Use CookieListByDomain to limit access to Cookie collection items having a specified Domain value. Use Items to access Cookie collection items by their integer position in the container.