Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: TidCookieManager questions (threads)

www.cryer.info
Managed Newsgroup Archive

Re: TidCookieManager questions (threads)

Subject:Re: TidCookieManager questions (threads)
Posted by:"dk_sz" (dk_..@hotmail.com)
Date:Fri, 23 Mar 2007 18:00:31

> So when copying? Do I need to copy the collection...
> And then patch FCookieListByDomain ?

If that is the case, I will highly recommend *Publish* a
method or property to allow clear *FCookieListByDomain*.

  ACookieCS.Acquire;
  ACookieManagerUpdate.CookieCollection.Assign(ACookieManagerShared.CookieCollection);
  ACookieCS.Release;
  E := ACookieManagerUpdate.CookieCollection.Count - 1;
  for I := 0 to E do
  begin
    // TODO: We need to clear the list first (used by *AddCookie*)
    N := ACookieManagerUpdate.CookieCollection[I];
    ACookieManagerUpdate.CookieCollection.AddCookie(N);
  end;


best regards
Thomas Schulz

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive