DEV Community

Discussion on: Using the Local Storage

Collapse
 
nikolicstjepan profile image
Nikolić Stjepan

So if I got this right - localStorage is a like cookies except expire part (ls lasts until cleared) and you can store more data in it?

Thanks for the article, it is super useful!

p.s. I relay like design of your Note App!

Collapse
 
sarah_chima profile image
Sarah Chima

Thanks for reading. I guess your question has been answered by Marcel and Lars.

Collapse
 
larsklopstra profile image
Lars Klopstra ⚡

It's also limited to the client for the specified site, servers and other sites can not access it

Collapse
 
marcel_cremer profile image
Marcel Cremer

No it's not - especially not in terms of security (because LocalStorage has no security model).

See also Please Stop Using Local Storage which shows some of the downsides.