[Zope] cookies and paths?

KevinL darius@obsidian.com.au
21 Aug 2002 12:10:31 +1000


On Wed, 2002-08-21 at 12:02, Quentin Smith wrote:
> Hi-
> This is, unfortunately, the way it is supposed to work. To expire a 
> cookie, you need to send a Set-Cookie header with an identical name and 
> path and a date in the past. I don't know how Zope handles setting 
> cookies, as I have only ever had to read cookies. I imagine you would 
> need to call something like RESPONSE.cookies.expire("name", "/path"), 
> but it probably is a different function name.
> --Quentin

The problem is, if I have a cookie called __ac at path /, and a cookie
called __ac at path /xone, then I can expire one or the other - but not
both on the same web request.  Because HTTPResponse.py keys on cookie
name only, not name and path.

Does this rate as a bug?  I can work around it, sorta, but it feels
wrong.

KevinL