DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 964,423 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Chhavi srivastav
Chhavi srivastav

Posted on

LocalStorage and Session Storage

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)

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›