Indy 9
|
TOnNewCookieEvent = procedure (ASender: TObject; ACookie: TIdCookieRFC2109; Var VAccept: Boolean) of object;
ACookie is the TIdCookieRFC2109 Cookie class instance, or descendant, to be added to the collection. ACookie is created as a result of TIdCookieManager calls to either AddCookie or AddCookie2 during processing of Cookie headers detected in a response from an HTTP server.
VAccept is a Boolean variable parameter that indicates if the Cookie was accepted and added to the collection maintained by the Cookie manager. The OnNewCookie event handler can set the value of VAccept to False to indicate that a Cookie was not added due to Cookie expiration, invalid Domain or Path attributes, incorrect Secure connection settings, or other invalid Cookie attributes.