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!
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.
It's also limited to the client for the specified site, servers and other sites can not access it
Thanks for reading. I guess your question has been answered by Marcel and Lars.
Sorry, but this article could be a bit misleading to newbie devs. It doesn't describe that accessing localStorage could result in a SecurityError (thus robust web apps should wrap LS access in a try-catch or similar mechanism), and the size of LS is not always equal to 5 MiB (on older Androids it is smaller, for example).
It would be fair to provide a link to MDN: developer.mozilla.org/en-US/docs/W..., which describes LS in greater details.
Session storage would be a better alternative also or no client side storage at all, even better, for legal and security reasons.
Short and simple, thats how all articles should be. Alas people think more jargons they use, more people see them as geeks.
It is a good article, just the subject is a little controversial.
If you just wanna be fine, dandy and secure wherever possible, use this github.com/localForage/localForage
API is pretty similar to localStorage but it uses IndexedDB or WebSQL where possible to allow quick and easy access.
Great article, simple and right to the point.
I had some cases in some projects at my company that I needed to extend how to work with the Local Storage, then I created these two packages here:
Depending on which kind of app we're working with, Local Storage can be a good friend!!!
Hi Sarah! I loved your article and would like to include it in my June Newsletter that I send out. I'll put a link to this article and attribute you if you're alright with that?
Hi Jonathan. Thanks for reading my article. I'm glad you like it. It will be my pleasure for my article to be included in your newsletter.
Thank you so very much Sarah! I really appreciate that!
I look forward to your future work!
Detailed explanation about local storage...thanks..keep it up.
Thanks for reading it.
Thanks!! Great article!
Thank you for reading.
Thanks for the details explanation
I'm glad you like it.
Arguably the most under used thing in web development. Great article!
Indexedb that is a better alternative.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.