'Jupyter Notebook: Force cookie expiration and reset token
How can I remove access to a Jupyter Notebook server to previous users? I did a quick setup of a Jupyter Notebook server and provided access to a few users. Now that it's no longer needed, how can I force the authentication cookies to expire and reset the authentication token?
I think I should have used JupyterHub, but I didn't know about it then.
Solution 1:[1]
Stop the server, run jupyter notebook password and set/change your password.
Solution 2:[2]
I had to delete the runtime files as well as the change the password.
You can get the path to the runtime files with jupyter --paths
Also see https://docs.jupyter.org/en/latest/use/jupyter-directories.html#runtime-files
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | crissal |
| Solution 2 | aksanoble |
