Internet Direct (Indy)
Home
PreviousUpNext
TIdCookieManager.OnNewCookie Event

Event handler signalled when Cookies are added to the collection.

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.