Topic Path: Symbol Reference > Classes > TIdCookies Class > TIdCookies Properties > Cookie Property
ContentsIndexHome
PreviousUpNext
TIdCookies.Cookie Property

Provides access to Cookie collection items using name and domain values.

property Cookie [const AName, ADomain: string]: TIdCookieRFC2109;

TIdCookieRFC2109 - Cookie with the specified name and domain, or Nil.

Cookie is a read-only TIdCookieRFC2109 property that provides indexed access to Cookies in the collection using the name and domain specified in AName and ADomain. 

TIdCookies calls GetCookieIndex, when using the read access specifier for Cookie, to determine the position of the Cookie having the specified CookieName and Domain. Cookie can return Nil when a Cookie cannot be located in the collection having the specified name and domain values. 

Use LockCookieListByDomain 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.

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