Topic Path: Symbol Reference > Classes > TIdCookieManager Class > TIdCookieManager Events > OnNewCookie Event
ContentsIndexHome
PreviousUpNext
TIdCookieManager.OnNewCookie Event

Event handler signalled when Cookies are added to the collection.

property OnNewCookie: TOnNewCookieEvent;

OnNewCookie is a TOnNewCookieEvent property that represents the event handler signalled when Cookie class instances are added to the CookieCollection

OnNewCookie is signalled when AddCookie or AddCookie2 is used to create the corresponding Cookie class instance used to represent the text for the Cookie. 

OnNewCookie can indicate if the Cookie is accepted or rejected based on values detected in the Cookie content. 

Use OnNewCookie to override the default logic used in management of the CookieCollection when Cookies are added to the collection. 

Applications must assign a procedure to the event handler to allow responding to the event notification.

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