Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Date: Thu May 17 15:02:36 2007
New Revision: 6559
Since Webware no longer uses '/', but the adapter path as the cookie path, setting it to '/' when deleting the cookie can be counterproductive, since the browser now may no longer recognize the cookie to be deleted. The solution is to simply leave the cookie path alone when deleting the cookie. (Bug report and fix by Adam Kerrison).
--- Webware/trunk/WebKit/Cookie.py (original)
+++ Webware/trunk/WebKit/Cookie.py Thu May 17 15:02:36 2007
@@ -157,18 +157,18 @@
## Misc ##
+ """Delete a cookie.
When sent, this should delete the cookie from the user's
browser, by making it empty, expiring it in the past,
and setting its max-age to 0. One of these will delete
the cookie for any browser (which one actually works
depends on the browser).
self._value = ''
self._cookie['expires'] = "Mon, 01-Jan-1900 00:00:00 GMT"
self._cookie['max-age'] = 0
- self._cookie['path'] = '/'
"""Return header value.
@@ -178,5 +178,5 @@
items = self._cookies.items()
- assert(len(items) == 1)
+ assert len(items) == 1