PDA

View Full Version : Can not read/write cookies from home directory!



Bromtom
09-30-2009, 05:47 PM
:confused:I have a strange situation, i have figured out that i can create cookies and read them with no problems in my sub-folders, but can not do either in the home directory of my website.

in other words:
www.example.com - does not parse cookies
www.example.com/directory/ - parses cookies

no forwarding, both directories are set to 755.

i am using JavaScript, method: document.cookies

anyone else run into this issue and know why this is happening? any ideas on a way to fix it?

Thanks

Bromtom
10-01-2009, 12:39 PM
I figured out a work around, for those who are also having problems, i had to pet the path in my script:

document.cookie = "name=value; path=/subdirectory"

i then placed the page that was pulling the data into that sub directory.

would not work setting the path to "/"

still not sure as to that one.

farcaster
10-01-2009, 12:54 PM
Do not double post. Thread closed.