[Zope] cookie scope?
Geir Bækholt
Geir Bækholt
Thu, 9 May 2002 12:23:07 +0200
Hello Mark,
Thursday, May 9, 2002, 1:35:22 AM, you wrote:
MAR> Hang on this is kinda confusing:
MAR> I set a cookie in a script in the top-level folder. Then move to a
MAR> sub-folder and change the cookie value. Then I go back to the top-level
MAR> folder and change the cookie. Lastly, I go back to the sub-folder and it
MAR> has kept the value from the previous sub-folder's change not the last
MAR> top-level folder change. So it's acting like I have created 2 cookies: 1
MAR> at the top-level, and 1 at the sub-folder level.
MAR> Anyone ideas? Thanks!
set path='/' in your cookie , and you should get the behavior you
want.
you can read about the path-attribute for cookies here :
http://www.netscape.com/newsref/std/cookie_spec.html
:-)
--
Geir Bækholt web-developer
geirh@funcom.com funcom oslo | webdev-team