Skip to content

Commit 0f0fe84

Browse files
committed
Expand description of compatibility code
1 parent 6ba7b17 commit 0f0fe84

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

notebook/base/handlers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ def clear_login_cookie(self):
124124
path = cookie_options.setdefault('path', self.base_url)
125125
self.clear_cookie(self.cookie_name, path=path)
126126
if path and path != '/':
127-
# also clear cookie on / to ensure old cookies
128-
# are cleared after the change in path behavior.
127+
# also clear cookie on / to ensure old cookies are cleared
128+
# after the change in path behavior (changed in notebook 5.2.2).
129+
# N.B. This bypasses the normal cookie handling, which can't update
130+
# two cookies with the same name. See the method above.
129131
self.force_clear_cookie(self.cookie_name)
130132

131133
def get_current_user(self):

0 commit comments

Comments
 (0)