cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Behaviour of Multiple Cookiefiles

From: aniket ray <aniket.ray_at_gmail.com>
Date: Thu, 24 Jan 2008 12:33:07 +0530

Thanks for the response and I apologize if I wasn't clear earlier.

On Jan 24, 2008 1:04 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Wed, 23 Jan 2008, aniket ray wrote:
>
> > ...
>
>
> > How does libcurl pickup cookies from multiple cookie files? Is there a way I
> > can force a preference to a particular file's cookies?
>
> The intention is that it loads the cookies in a cronological order so if you
> load th esame cookie three times, the last occurance is the one that it'll
> contain afterwards.
I understand it, if we have one cookie file; the cookies written later
in the file were issued afterwards (chronologically). But if we have
multiple files, how does that work?

> > ...
>
> > Also, how is the cookiejar maintained?
>
> It's not really "maintained", it's written when you close the easy handle.
What happens to the cookies already written in the file. (Based on
observation, I am guessing the old cookie jar gets overwritten, each
time the handle is closed. Is that right?)

Thanks,
Aniket
Received on 2008-01-24