Eric Pascarello wrote:
How are you creating the cookie? When the cookie is created are you setting the domain?
Here is my setCookie code:
The above 'alert' won't print the cookie that I created earlier with the same name (as it was already created at a different path)
Is this because I am not considering the path ? The domain is same for the 2 cookies, only the path is different...
When i create cookie, its getting saved at a certain location. I click a button and go to a different tab ( a different page). I still see the cookie.
When I click back to original screen, the browser is not able to retrieve the cookie that I created earlier. And my code will create a new cookie if one doesn't exist already. This new cookie is getting created at a different location. Now I see the same cookie name at 2 different paths.