From: Christopher Allan Webber Date: Wed, 10 Apr 2013 15:08:09 +0000 (-0500) Subject: Fix sessions so they work across the site. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=33cbccb09d019f1d0310bc619c75e2839375bfa3;p=mediagoblin.git Fix sessions so they work across the site. --- diff --git a/mediagoblin/tools/session.py b/mediagoblin/tools/session.py index 64220ed9..fdc32523 100644 --- a/mediagoblin/tools/session.py +++ b/mediagoblin/tools/session.py @@ -62,9 +62,7 @@ class SessionManager(object): if not session.is_updated(): return elif not session: - response.delete_cookie(self.cookie_name, - path=request.environ['SCRIPT_NAME']) + response.delete_cookie(self.cookie_name) else: response.set_cookie(self.cookie_name, self.signer.dumps(session), - path=request.environ['SCRIPT_NAME'], httponly=True)