Accessing Cookies From Entire Site?

N

Nonee

Hello all,

I am having a problem. I am using a cookie to track products in
an order and then a cart to checkout. Well, the cookie is tracking
fine for the products but when I go to the checkout cart, the cookie
is empty. Now, the products are in a folder deeper than the cart and
I think this has something to do with the path stored in the cookie.
Right? How can I have the cookie remain accessible for the enitre
site? Do I just put the domain in the path? path="www.somesite.com"?

Thanks,

Josh
 
B

Benjamin Niemann

Nonee said:
Hello all,

I am having a problem. I am using a cookie to track products in
an order and then a cart to checkout. Well, the cookie is tracking
fine for the products but when I go to the checkout cart, the cookie
is empty. Now, the products are in a folder deeper than the cart and
I think this has something to do with the path stored in the cookie.
Right? How can I have the cookie remain accessible for the enitre
site? Do I just put the domain in the path? path="www.somesite.com"?

No, use path="/" (or what ever is the topmost path where the cookie is
needed).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cookies Not Available On Other Pages 1
CORS/Express: Getting data from server from domain html 2
Cookies 15
Cookies? 5
Accessing cookies from response object 0
IFrame and cookies 1
Using Cookies 0
Image issues 0

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top