greedyzebra
Technical User
I'm creating two cookies on my web site. One is created on the index page (presumably the entry point, but the javascript function that does this is called "onload" on every page). The other is very specific and is created and added to based on user selections on another page.
On entry into the page where the user can manipulate the contents of the second cookie, I alert document.cookie. The data from the previously created cookie is there. When the user performs the actions to manipulate the cookie I alert document.cookie. All of the data is successfully added.
On exit from the page where the user can manipulate the contents of the second cookie I alert document.cookie. Everything is fine, the contents of both cookies is there.
However, when I get to the page that needs the data from the second cookie (usually the page accessed after exiting the page where the second cookie is manipulated) Only the first cookie appears. What happened to my second cookie? Where did it go? I do nothing on the page where it's missing to affect document.cookie. I don't set expiration dates or exclude the cookie to a particular domain. Even if I did the domain is not different.
Please help before I have a stroke or put my fist through the computer screen!
Thanks.
On entry into the page where the user can manipulate the contents of the second cookie, I alert document.cookie. The data from the previously created cookie is there. When the user performs the actions to manipulate the cookie I alert document.cookie. All of the data is successfully added.
On exit from the page where the user can manipulate the contents of the second cookie I alert document.cookie. Everything is fine, the contents of both cookies is there.
However, when I get to the page that needs the data from the second cookie (usually the page accessed after exiting the page where the second cookie is manipulated) Only the first cookie appears. What happened to my second cookie? Where did it go? I do nothing on the page where it's missing to affect document.cookie. I don't set expiration dates or exclude the cookie to a particular domain. Even if I did the domain is not different.
Please help before I have a stroke or put my fist through the computer screen!
Thanks.