+ 3

What is local storage? What is it used for?

22nd Apr 2018, 12:32 AM
Mladen Lazic
Mladen Lazic - avatar
3 odpowiedzi
+ 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).
22nd Apr 2018, 12:37 AM
ServantCoder
ServantCoder - avatar
+ 2
There are two types. localStorage persists beyond browser closure. sessionStorage only lasts until the tab or browser is closed.
22nd Apr 2018, 4:35 AM
Adam
Adam - avatar
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.
23rd Apr 2018, 8:25 AM
Rishi Kumar.S
Rishi Kumar.S - avatar