View Full Version : Cookies Path

Mr J
12-23-2003, 02:04 PM
Hi All

I am once again getting all confused with this cookie situation, here's what I am wanting to do.

I want to create one cookie that can be read and updated from any page on my site.

Here's what I am doing.

I set "mycookie" in page 1 with some text

Load page 2 and get "mycookie", the text displayed is what I set in page 1, this is correct.

Now I add more text and set "mycookie"

When I reload page 2 the text is correct but when I load page 1 only the original text is shown

Page 2 is in a different directory

I look in my cache and see that 2 cookie files have been created one for page 1 and another for page 2

Any help would be appreciated


Mr J
12-24-2003, 02:19 AM
I finally managed to figure it out