Forum How do I...?

how do i create a cookie jar ?

fran
Hi,

I would like to add cookie support to my application but I don't know how to create a cookie jar ?

I tried a cookie file like this :
PHPSESSID=9annrn6chqrkofcqifa97fsjt2;
path=/;
domain=my.super.domain


but it does not work.

Can you help me ?

Thanks,
François
mikeday
The Mozilla cookie jar format uses tab-separated fields (google "mozilla cookie format"). Alternatively, Prince should also accept raw HTTP headers.
fran
mikeday wrote:
The Mozilla cookie jar format uses tab-separated fields (google "mozilla cookie format"). Alternatively, Prince should also accept raw HTTP headers.


Ok, I did not know.

A good explanation : http://xiix.wordpress.com/2006/03/23/mozillafirefox-cookie-format/

It works,
Thanks,
François