Skip to content Skip to sidebar Skip to footer

Set Cookie Path

I have a javascript cookie which works although I have pages in different directories. The cookie set on the default page has a path '/' while the cookie set in another directory h

Solution 1:

Indicate the path by adding the following to the end of the cookie string in function "SetCookie":

"; path=/";

http://www.quirksmode.org/js/cookies.html#doccookie

Post a Comment for "Set Cookie Path"