DEV Community

Cover image for Cookies vs Session Storage vs Local Storage

Cookies vs Session Storage vs Local Storage

Royal Jain on January 15, 2024

In the world of web development, managing client-side data is crucial for creating dynamic and user-friendly web applications. Three primary techno...
Collapse
 
ritaly profile image
Rita {FlyNerd} Lyczywek • Edited

this is chatgtp article really shame that DEV to allow to publish stuff like that

overview with a lot of "general" claims but meaningless lack of explanation, I wish they start to detect such text and block them

Collapse
 
andreyscott profile image
Andreyscott

How can you tell?

Collapse
 
ritaly profile image
Rita {FlyNerd} Lyczywek • Edited

Sentence syntax, meaningless phrases, repetitive structure.
If you use gpt for your personal uses you will quickly notice, same starters, always the same "generative" form of text.

Also, you can check it - Open AI, Copyleaks etc offer tools to detect AI generated content.

Thread Thread
 
royaljain profile image
Royal Jain • Edited

I have used AI tools to help me write - This is the process. I thought of the structure I want to write

Short explanation of Technology(local storage, cookies & session storage) , Main properties I want to talk about (size, lifespan and security) and a simple use case to help people understand it.

AI helped me in writing this much faster and better, what is wrong with that?

Not every article is supposed to be an in-depth analysis, some articles provide an overview which can lead to in-depth research on a particular topic.

Thread Thread
 
thom4s profile image
Thomas

The "wrong with that" is that you don't make the effort to detail by writing your thoughts. You don't put your brain in difficulty. It's not that serious or bad, a lot of my students are working like that. The AI is here, juste near me. Why do I bother ?
But It's just lazyness.

Thread Thread
 
royaljain profile image
Royal Jain

Judging from reactions, this post has been helpful to some folks at-least, and that's all that matters - AI or not. If a post is useless than people won't read it and that's fair. Lot of my post don't get good number of views and that's fair too. It's a self correcting system.

Don't know why people try to take moral high-ground, if you don't like it just ignore.

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
ant_f_dev profile image
Anthony Fung

Great overview of the topic!

An important thing to keep in mind when using local storage is that saved data will only be available on the device it was saved on.

I wrote a survey app once that used local storage to store results before submitting. This allowed people to fill in the survey over multiple sessions if needed. I had some feedback asking if people could start it on their computer, and finish it on their phones; this wasn't possible by only using local storage. But it does make a good local cache.

Collapse
 
mcbbugu profile image
bugu

Thank you for sharing, I have learned a lot from it.

Collapse
 
lymah profile image
Lymah

Thanks for sharing.

Collapse
 
factordiceomar profile image
OmarC

Good article, concise, informative and quick to get to the point.