[Zope] Re: reading a cookie from another PATH??

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Thu, 6 Sep 2001 20:43:24 +0400


On Thu, Sep 06, 2001 at 12:34:34PM -0400, Trevor Toenjes wrote:
> How do I control the PATH to read a cookie?

   I do not understand the question.

> I am using
> <dtml-if "REQUEST.has_key('myCookie')>
> <dtml-var myCookie>
> located in www.bar.com/folder1/folder2

   If you setCookie("region", "moscow", path="/foo", domain=".bar.com"),
the browser will send the cookie along with every request that matches the
path, in this domain. For example, request to http://www.bar.com/foo will
set the cookie, as well as for http://foobar.bar.com/foo/bar, but the
cookie will not be set for request http://www.bar.com/baz/foo

Oleg.
---- 
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.