From 0f0fe8474095e698bb8c6b5e898bf41fbbce1b4a Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 16 Jan 2018 11:51:43 +0000 Subject: [PATCH] Expand description of compatibility code --- notebook/base/handlers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/notebook/base/handlers.py b/notebook/base/handlers.py index e7b371813..ddd82426d 100755 --- a/notebook/base/handlers.py +++ b/notebook/base/handlers.py @@ -124,8 +124,10 @@ class AuthenticatedHandler(web.RequestHandler): path = cookie_options.setdefault('path', self.base_url) 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. + # also clear cookie on / to ensure old cookies are cleared + # after the change in path behavior (changed in notebook 5.2.2). + # N.B. This bypasses the normal cookie handling, which can't update + # two cookies with the same name. See the method above. self.force_clear_cookie(self.cookie_name) def get_current_user(self):