Chrome cookies are deleted after websocket connection fails

I’m using Jupyter from my localhost. Sometimes the websocket fails and reconnects.
When that happens, all browser cookies are deleted. What´s interesting is that it looks like it deletes cookies for all domains, so if I’m using a web app in another browser tab, I get logged out from that app because its session cookie is no more. I’m using google chrome.

Is there a way around this?