DEV Community

talent
talent

Posted on

8 1

Local Storage and Session Storage explained

Difference between Local Storage and Session Storage, explained:

Local Storage: Local storage is a method that allows us to store key-value pair data in the user's browser. It is stored indefinitely in the browser and has a limit of 10MB.

Session Storage: Session storage is similar to Local storage, but the data is only stored as long as the user's session is active and can store data of up to 5MB. It is terminated as soon as the user closes the browser window.

Top comments (2)

Collapse
 
babib profile image
๐๐š๐›๐ข โœจ โ€ข

Thanks! Short and simple

Collapse
 
juan_patrnguerrero_702b profile image
Juan Patrรณn Guerrero โ€ข

Could you explain what kind of data save in local storage and session storage ?

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free โ†’

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay