Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
f4192b26
Commit
f4192b26
authored
Jun 18, 2015
by
Marcel Rieger
Browse files
Remove some cookies on logout.
parent
dc13d9d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/controller/root.py
View file @
f4192b26
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment