- Dec 2, 2002
- 1,916
- 0
- 0
I'm using JavaScript to set a cookie. When I set the path attribute of the cookie to "/", everything works fine. However, I want to limit access to the cookie to the page that created it. Thus, I want to be able to set the path attribute to location.pathname (for example /home/src/accounts.html). I can set cookies fine in IE and Mozilla, but only Mozilla is able to get the cookie. IE can't match the cookie path for some reason. Any ideas? Your help is greatly appreciated!