+ 3
What is local storage? What is it used for?
3 Réponses
+ 4
It is used to store user data on the visitor's computer that the website can use throughout a user's session, since HTTP is stateless. It is used to accomplish what cookies used to do (plus more).
+ 2
There are two types. localStorage persists beyond browser closure. sessionStorage only lasts until the tab or browser is closed.
0
There are two types of storage first one is session storage next is local storage.
session storage: In this storage,all are cleared after closing the browser
Local storage: In this storage, data are available after closing the browser.