Data stored through local storage is permanent:--
It does not expire and remains stored on the user's computer until a web app deletes it or the user asks the browser to delete it.
Session Storage ::---
Session storage has the same lifetime as the top-level window or browser tab in which the data got stored. when the tab is permanently closed, any data stored through session storage is deleted .
Top comments (0)