Reading cookie problem across directories
Posted
by Etienne
on Stack Overflow
See other posts from Stack Overflow
or by Etienne
Published on 2010-05-14T10:46:30Z
Indexed on
2010/05/14
10:54 UTC
Read the original article
Hit count: 224
This is my JavaScript code I use to create my cookie............
document.cookie = "Name=" + Name + ";expires=Friday, 31-Dec-2011 12:00:00 GMT; path/";
I create it in www.example.com/folder/file.html and it works.
But I cant read the cookie from www.example.com/index.html or www.example.com/folder2/file2.html.
What is wrong with my code?
Thanks in advanced
© Stack Overflow or respective owner