Clear tornado cookie on logout

This commit is contained in:
Daisuke Taniwaki
2021-01-24 20:21:17 +09:00
parent b1b7954e93
commit 2f304bffcc

View File

@@ -493,6 +493,11 @@ class BaseHandler(RequestHandler):
path=url_path_join(self.base_url, 'services'),
**kwargs,
)
# clear tornado cookie
self.clear_cookie(
'_xsrf',
**self.settings.get('xsrf_cookie_kwargs', {}),
)
# Reset _jupyterhub_user
self._jupyterhub_user = None