Local / Session Storage Flashcards
1
Q
What’s the difference between local storage and session storage?
A
Local storage is a browser API that allows you to store key-value pairs in the browser with no expiration date. This data persists even after the browser is closed.
Session storage is a browser API that allows you to store key-value pairs in the browser, but with an expiration date tied to the current browsing session. This data is deleted when the user closes the browser.