Only use force_clear_cookie for the extra compatibility piece

This commit is contained in:
Thomas Kluyver 2018-01-16 11:47:10 +00:00
parent 1fdcd375ab
commit 6ba7b17181

View File

@ -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.