From 33cbccb09d019f1d0310bc619c75e2839375bfa3 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 10 Apr 2013 10:08:09 -0500 Subject: [PATCH] Fix sessions so they work across the site. --- mediagoblin/tools/session.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.25.1