Board index » delphi » Pointer to CookieManager Indy10 examples?

Pointer to CookieManager Indy10 examples?


2004-07-16 06:17:21 AM
delphi55
Hi,
Can anyone point me to some code examples or other documentation that
shows how to use cookieManager? Thanks.
Warren
 
 

Re:Pointer to CookieManager Indy10 examples?

Quote
Can anyone point me to some code examples or other documentation that
shows how to use cookieManager? Thanks.
In general, CookieManager is used to track cookies occurring in an HTTP response so they can be used in future requests to their domain. When the AllowCookies property contains True, CookieManager is automatically created and used by the HTTP client during protocol exchanges.
There are some other properties, methods, and events of interest that are described here...
www.indyproject.org/docsite/online/frames.html
Specifically: the event handlers for OnCreate, OnDestroy, and OnNewCookie.
They're useful if you need to load the entire cookie list for the client at startup, store all of the cookies encountered by the client before shutdown, or make sure a new cookie gets into your cookie storage mechanism or schema.
hth...