Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: TidCookieManager questions (threads)
| Subject: | Re: TidCookieManager questions (threads) |
| Posted by: | "dk_sz" (dk_..@hotmail.com) |
| Date: | Fri, 23 Mar 2007 11:00:11 |
> You are not not checking for duplicate cookies, existing cookies that
> have new values, or existing cookies that need to be removed.
If I follow code, duplicate and exisitng cookies are
handled by *TIdCookies.AddCookie* as far as I can
see? (This routine is also threadsafe as far as I can tell)
Under all circumstances, in my test:
New idHttp
Post_LoginAt_WebPage
(SaveCookies to manager while login)
Destroy idHttp
New Htttp
LoadCookies
Get_Retreieve_WebPage
Destroy idHttp
I would still think the issue may also be I am not
copying enough data?
TIdCookies is slightly "odd" in the sense it is a collection...
With its own data and where access isn't threadsafe...
...But also contains FCookieListByDomain where all
access are done through the lock (thus threadsafe)
best regards
Thomas Schulz