3 ms·
There are two types of "web storage" that you could use for this, localStorage and sessionStorage. The former persists indefinitely, the latter is removed when
by avolcano 10y ago
There are two types of "web storage" that you could use for this, localStorage and sessionStorage. The former persists indefinitely, the latter is removed when the tab is closed.
If you wanted user tokens to persist past the current browser session, you'd use localStorage.
- therealmarv 10y agothx, last question: Is localStorage more/less/same secure than sessionStorage?
- warfangle 10y agoThe only difference between the two is what causes the data stored within to flush.