JupyterHub and JupyterLab Cookies (Privacy Policy)

Hey there,

We maintain a JupyterHub for students.
Due to privacy concerns and GDPR compliance, we must provide a list of cookies that may be used by JupyterHub or the spawned JupyterLab instance.
In fact, we have to mention the purpose of the cookie and its value.

Is there a dedicated documentation page about it, or can somebody reference the use of cookies in the source code?
Some other JupyterHub privacy policies mention that cookies are only used to keep track of the session. Is this sufficient?

Thanks in advance.

Best regards,
Paul

Most of the cookies are related to logins and sessions. This is probably the best reference from the JupyterHub side:

There are also some XSRF cookies.

If you’ve installed some extensions it’s possible they’ll set additional cookies. It’s also worth noting that JupyterLab may use localStorage.

If you open a new incognito browser and open your dev tools it’s easy to check.

1 Like

Is there a dedicated documentation page about it

For JupyterLab: Privacy policies — JupyterLab 4.2.3 documentation

JupyterLab itself does not use any tracking cookies, only security cookies for login session perisstance and for cross site forgery prevention and these are in fact inherited from jupyter-server/tornado web server.

1 Like

The session cookie in jupyter-server is documented here: Security in the Jupyter Server — Jupyter Server documentation

2 Likes

The xsrf (cross site forgery prevention) cookie is used in two places, here:

and here:

1 Like

Thank you so much for providing several insights!