mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Only use force_clear_cookie for the extra compatibility piece
This commit is contained in:
parent
1fdcd375ab
commit
6ba7b17181
@ -122,7 +122,7 @@ class AuthenticatedHandler(web.RequestHandler):
|
||||
def clear_login_cookie(self):
|
||||
cookie_options = self.settings.get('cookie_options', {})
|
||||
path = cookie_options.setdefault('path', self.base_url)
|
||||
self.force_clear_cookie(self.cookie_name, path=path)
|
||||
self.clear_cookie(self.cookie_name, path=path)
|
||||
if path and path != '/':
|
||||
# also clear cookie on / to ensure old cookies
|
||||
# are cleared after the change in path behavior.
|
||||
|
Loading…
Reference in New Issue
Block a user