[Zope] cookie scope?
Mark Robinson
marcos@paladin-its.com
Thu, 9 May 2002 13:30:31 -0500
Worked like a charm. Thanks!
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Geir
B=E6kholt
Sent: Thursday, May 09, 2002 5:23 AM
To: Mark A. Robinson on the zope-list
Cc: zope@zope.org
Subject: Re: [Zope] cookie scope?
Hello Mark,=20
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=3D'/' 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
:-)
--=20
Geir B=E6kholt web-developer
geirh@funcom.com funcom oslo | webdev-team
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -=20
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )