See Linear issue. I was seeing a bug where if a web session was too old (older than 3 days) and the session got deleted, the client would be unable to reconnect.
This diff fixes the issue by making the server create a new session if the old one is expired.