JavaScript Cookies vs Local Storage vs Session Storage

preview_player
Показать описание
The ability to quickly store information on a user's browser is an incredibly under used, powerful feature of JavaScript, and this is partially because of how unwieldy it used to be. In this video I am going to discuss the differences between cookies, local storage, and session storage, and how dealing with browser storage has become much easier since the initial release of cookies. I will also talk about how to use cookies, local storage, and session storage to store information in a users browser.

Cookies vs Local Storage vs Session Storage Article:

Twitter:

GitHub:

CodePen:

#LocalStorage #Cookies #SessionStorage
Рекомендации по теме
Комментарии
Автор

Man, you're as good as The Net Ninja, which is my current source of information. I hope you'll get many subscribers soon, your style is clear, short and to the point.
Thanks!

EduardKaresli
Автор

and on the eve of the year 10000 there was the great cookie expiration crisis...

oldbootz
Автор

This is simply the best YouTube channel to quickly get to the bottom of a particular issue that you have without long explanations of things you don't need. For everything else, there is documentation. You help a lot of people, thank you so much!

bohdanromanovich
Автор

Yo! Thanks for breaking down topics like this, many youtube searches lead to you and i'm never dissapointed. Thank you

BoLeee
Автор

Today is my first time of seeing JS cookies and session storage.. I learnt local storage through MDN some time past.. Thanks Sir, I pray your Channel grows rapidly.

pastorfred
Автор

Crisp and clear explanation. Sir I have an interview tomorrow for an internship. I am watching this to revise the concepts and I chose the correct channel for this purpose. Amazingly explained and straight to the point.

nehakumar
Автор

0:00 Overview
4:56 LocalStorage
8:10 SessionStorage
9:43 Cookies

Jhonny
Автор

Your videos on JS are simply the best. Explain exactly what you need to know, nothing more and nothing less, in the most efficient way. Thank you so much!

_briantravis
Автор

July 2024. I was having a hard time working on NextJs, trying to learn how the server rendered pages were accessing my local data before actually generating (I did not want a client page), I did not know that cookies are sent with my requests. Now I can process some data on the server specific for the user, as I am getting the user email from the request as a cookie. I love this channel.

somehappyguy
Автор

You have a very clear and concise way of approaching the subject. I felt like I learned quite a lot in 15 minutes! Thank you!
I hope you get many more views on your videos.

steves
Автор

Bro, You have a talent to share knowledge with us! So easy to follow and understand. You will have much more subscribers in the future for sure! Its all about of time =)

ridl
Автор

This is fantastic, I've been scratching my head a lot lately trying to differentiate session, storage, and cookies and then lining it up with session on the server side. I've started looking at how other websites do it through the browser dev tools and cookies seem to be the weapon of choice.

alanhunt
Автор

It would be great also if you explain the different situations you may use each of them and which security problems you could have, like for example, storing user session data (auth).
Great video. Thanks

fabiajero
Автор

Amazing. Clear, concise, straight to the point and beginner-friendly examples. You provide the perfect platform for beginners like me, and I'm always grateful :)

jewels
Автор

I was searching here and there to learn these things and you really simplified them. Thank you, man, you saved my day. Subscribed <3 Love from Pakistan.

Sam-xvko
Автор

keep the very detailed straight to point explanation, i really can understand the topic without watching several times

karlomoonblade
Автор

Best cookie video I've seen. You can tell this guy has a deep knowledge of the material with the way he effortlessly explains all the moving pieces.
I know this is written with for Devs, but it's also a really good sort of introductory deep-dive into cookies. He did a great job of explaining the different types of cookies, how to identify them, what they do, and the reasons for why they are needed. Most concise yet jam packed with info video on any subject I've seen recently. Surprised to find it on the subject of web cookies, as in my experience it has been difficult to find videos that aren't either too shallow or too deep in their scope. This was perfect and I feel like I can take the next step without any huge gaps in my understanding now.
Great job, thank you!

TimothySmithii
Автор

bro... thanks for putting much effort..this channel is awesome!!

harshilparmar
Автор

I appreciate that you share solid information. You are consistently good. Thank you!

AlekVila
Автор

Great channel, I've learned a lot. You're very clear and to the point.

horrorbreakdown