Commit f4192b26 authored by Marcel Rieger's avatar Marcel Rieger
Browse files

Remove some cookies on logout.

parent dc13d9d4
......@@ -211,6 +211,12 @@ class RootController(AbstractController):
@cherrypy.tools.stats(page="logout")
@cherrypy.tools.method(accept="GET")
def logout(self, path="/"):
# remove some cookies
cookies = ["ROUTEID"]
for c in cookies:
if c in cherrypy.response.cookie:
cherrypy.response.cookie[c]["expires"] = 0
vispa.fire_callback("user.logout", cherrypy.request.user)
vispa.socketbus.remove_session(self.get("window_id"))
cherrypy.lib.sessions.expire()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment