JavaScript Cookies vs Local Storage vs Session Storage
Вставка
- Опубліковано 11 січ 2019
- 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:
blog.webdevsimplified.com/202...
Twitter:
/ devsimplified
GitHub:
github.com/WebDevSimplified
CodePen:
codepen.io/WebDevSimplified
#LocalStorage #Cookies #SessionStorage
and on the eve of the year 10000 there was the great cookie expiration crisis...
oldbootz I’m here from the future to warn all you guys that you shouldn’t be setting your cookies to expire in the year 9999. Please. Human civilization depends on it.
@@gl3nda96 set it to 1 ad
@@gl3nda96 couldn't you set it programmatic. Like, get current year > add 2
@@dawid_dahl shit I will have to find my password to login again.
What kind cookies? Chocolate chip.. cookies..? Or
Ok nvm.
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!
Thank you! That is a huge compliment. The Net Ninja has amazing content and was one of the sources of inspiration for my channel.
Same I only watch net ninja and kyle
Brad Traversy aka TraversyMedia, Shaun aka Net Ninja and Kyle aka WebDevSimplified, these guys are gold for webdevelopers especially for beginners!
Three years later, they have same amount of subscribers.
Congrats Kyle 🤞
Yes! Him and Net ninja are so gifted at explaining
0:00 Overview
4:56 LocalStorage
8:10 SessionStorage
9:43 Cookies
thank yoy
Thanks!!
This is simply the best UA-cam 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!
That is so true
Yo! Thanks for breaking down topics like this, many youtube searches lead to you and i'm never dissapointed. Thank you
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.
Thank you! I'm glad my video was insightful for you.
@@WebDevSimplified Hi bro.Your content is awesome and the way you simplifies is above that.I have some real doubts. I can explain in detail if you provide me your mail id.
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.
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
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!
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.
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.
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 =)
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 :)
bro... thanks for putting much effort..this channel is awesome!!
Thanks! I love making these videos so it doesn't even feel like work. Well at least most of the time :P
@@WebDevSimplified even if you do not copy what is existing already (and that is exactly the same) ?
keep the very detailed straight to point explanation , i really can understand the topic without watching several times
Great channel, I've learned a lot. You're very clear and to the point.
Thank you!
I was searching here and there to learn these things and you really simplified them. Thank you, man, you saved my day. Subscribed
Every day I am learning from your channel...great work ..
You're great at explaining things. I'm very grateful!
Great explanation of the differences! I think it would be useful if you provided some info on the security concerns and proposed some actual libraries for cookies management.
Tack för att du delar med dig. Jag har använt Morelogin nyligen och det skyddar integriteten.
Liked and subscribed. Great explanation for everything. Keep up the good work!
Dude, I had to learn about session storage today on the go in order to create a user login in system!
I wish I had seen this video before that!
Thank you sir. This is what I was searching for. Thanks bro all your unique videos with best example. Love and support ❤️
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!
When you know what you're talking about you can put it in simple terms 😆
lastName=Smith
@@CJFX_ Sometimes yes, sometimes no
@@DenzelHooke precise
He's the man. Crazy knowledgeable.
missed your voice for about 6 month after you full javascript course, I'm happy to hear you again ;)
Thank you so much for uploading such a simple and easy to understand tutorial video
Hey Kyle! Thanks. basically, you taught me React and these little things in javascript. Thank you. You're a huge time saver
my first web dev video and it was hella helpful thanks for it , liked & subscribed looking forward to more content
First: nice.
Second: thank you, I’ve been trying to understand cookies vs session storage and which to use and when, your video cleared up a lot!
Thanks again
The best lecture of cookies and storages in the world. thanks Kyle !
This was a great video! Detailed yet concise. Defs subscribing :)
Excellent presentation. This helped me understand the concept so much better. Thank you✌️
Thank you for making such an informative video!!!
You're welcome!
Many thanks for such clear and structured explanation!
I really love u, man! this is the best channel about coding.
Great tutorial, thanks.
It's crazy how express-session uses cookies for server-side.
Nicely explained. Thank you for passing the knowledge!!
Thank you so much. This really explained everything really well.
My goodness you are covering all the necessary topics, my friend
Your explanation is always on point! Good job!
Thanks man... it was quick, straight to the point and informative... i am grateful.
you just earned a new sub... :)
Thank you very much for the explanation. Very helpful content. Keep it up!!
Man, what a beautiful set of eyes! Your voice is also very nice to listen to. You deserve more subs and views.
Thank you for that good explanation, Kyle!
Thank you for the detailed explanation.
Why I love his videos! Because his contents is to the point. No extra shit.
THERE IS A REASON WHY *I'VE SUBSCRIBED* TO THIS GUYS CHANNEL, HE'S SO HUMBLE, AND VERY INTELLIGENT AT GETTING THE CONCEPTS IN ONE'S HEAD, AND HE'S SO KNOWLEDGE-PACKED. I AM A FAN AND A STUDENT OF YOURS NOW. MR.
Thank you!
Thank you man, simple and clear
First working tutorial i found in half of year! Thanks!
2 words: Thank You!
Your videos have been help me a lot!!!
Dude, you‘re always on point. Thanks a lot.
You're welcome
Really useful !!! Thx so much !!! Keeping making more videos !!!
I don't plan to stop anytime soon.
Thanks, man. You are awesome. I was just wondering how Redux persist works and this video came up in my recommendation. Great stuff!
Great video. FYI: 10 MB and 5 MB means MEGABYTES, which is 8x larger than megabits.
I did not knew Jordi el niño also had a web development youtube channel. great work, keep it!
xd
you are my favourite content creator. I watch alot of your videos nowadays.
Great overview Kyle... appreciate how you showed everything real time with code and the dev tools. Thanks!
Thanks Kyle! you explained it very clearly !!!
this video really helped me understand... thank you
3:31 mid 2020, Apple(iOS and desktop Safari, is implementing a new localstorage rule. Its a game changer.
"Specifically, Safari will erase IndexedDB, LocalStorage, Media keys,
SessionStorage, and Service Worker registrations after seven days if the
user does not interact with the associated website during this period."
Sadly.
thanks man, have a great week
Best explanation. I learned what I exactly need to know
Very good explanation thank you.
Opening chart was super helpful .
amazing and simplest explanation
Very good explanation, to the point.
Best tutorials about web developing on UA-cam
Thanks for your videos! Great work 🙏
You inspire me a lot dude! Tanzania🇹🇿
Thank for such valuable tutorial.
Thanks Jordi! You're the man!
thank you, simple and to the point :)
Thank you so much for the nice explanation
What an amazing explaination! you are amazing dude!
thank you so much. make me clearly about the concept of them.
Excellent and simple video.
Great explanation, thnx x sharing 👍🏼
These videos are good please share more ...🙏
As always fantastic explanation
Really nicely explain
Thank you for this great video.
Thanks, that was super useful! 🙏
Thanks,it is very helpful.💐
short explanation and clear as water 👍
Excellent introduction
You did it, thanks, that's the explanation I was looking for, Regards
Great video thanks 👍
Great content! Thank you!
Amazing video. Thank you.
Web dev has never been simpler.. Thanks wds 😌
- Thanks buddy, if only I had watched this video when I was learning to bake cookies! Local Storage is what I actually needed then but didn't know it. Your commentary is crisp and clear as is your visual display style. I'm a teacher by trade so I recognise a good communicator when I see one. Thank you sincerely.
This guy has done everything I need, he is a walking institution !
short, interesting and very useful Thanks
Thanks, you helped me a lot
That table at the beginning is helpful. You could show however how (or when) cookies are sent to the server. As i checked in developer tools, they're sent before first call to the webpage
Great video thanks!
Nice video! The size of localstorage and sessionstorage in the video is in megabytes not megabits.
and cookies in byte
Clean Lecture.
thank you very informative video