3 ms·
SessionStorage has all of those properties: https://developer.mozilla.org/en/docs/Web/API/Window/sessionStorage https://developer.mozilla.org/en/docs/Web/API/W
by throwawayReply 10y ago
SessionStorage has all of those properties:
https://developer.mozilla.org/en/docs/Web/API/Window/sessionStorage https://developer.mozilla.org/en/docs/Web/API/Window/session...
localStorage is often used for it's persistance across closing/reopening the browser, but for times when you don't want storage to bleed across tabs or closing the browser then session storage is much better, and unlike a cookie doesn't automatically get attached to request so there aren't XSRF worries.
(You still need to be careful of XSS of course.)