[web session] fix potential key error on logout (occurs once the session has been transparently reconnected, hence session.sessionid and session.cnx.sessionid differs) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 06 May 2010 14:26:47 +0200
branchstable
changeset 5494 f3bb53f1737c
parent 5491 0a6e6fccfd30
child 5496 d1b6db4d7b3f
[web session] fix potential key error on logout (occurs once the session has been transparently reconnected, hence session.sessionid and session.cnx.sessionid differs)
web/application.py
--- a/web/application.py	Thu May 06 14:27:57 2010 +0200
+++ b/web/application.py	Thu May 06 14:26:47 2010 +0200
@@ -270,7 +270,7 @@
         """logout from the instance by cleaning the session and raising
         `AuthenticationError`
         """
-        self.session_manager.close_session(req.cnx)
+        self.session_manager.close_session(req.session)
         req.remove_cookie(req.get_cookie(), self.SESSION_VAR)
         raise LogOut(url=goto_url)