I\'m using session-based cookies with my website. To my complete surprise, I noticed if I set a session cookie (not a persistent cookie), close a tab, and then reconnect to
Session web storage can be used instead of cookies if you need to depend on tab closure.