Fix sessions so they work across the site.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Apr 2013 15:08:09 +0000 (10:08 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Apr 2013 15:08:09 +0000 (10:08 -0500)
mediagoblin/tools/session.py

index 64220ed94a589f15910d2d6cce9fb30fc08f57eb..fdc32523c8acdcb46ba7166d48d6fa0918510825 100644 (file)
@@ -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)