JavaScript Cookies vs Local Storage vs Session Storage

  Рет қаралды 769,339

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 464
@EduardKaresli
@EduardKaresli 5 жыл бұрын
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!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you! That is a huge compliment. The Net Ninja has amazing content and was one of the sources of inspiration for my channel.
@dangerdoctor920
@dangerdoctor920 2 жыл бұрын
Same I only watch net ninja and kyle
@shaikhasad2911
@shaikhasad2911 2 жыл бұрын
Brad Traversy aka TraversyMedia, Shaun aka Net Ninja and Kyle aka WebDevSimplified, these guys are gold for webdevelopers especially for beginners!
@101kawsar
@101kawsar 2 жыл бұрын
Three years later, they have same amount of subscribers. Congrats Kyle 🤞
@tigana
@tigana 6 ай бұрын
Yes! Him and Net ninja are so gifted at explaining
@bohdanromanovich4912
@bohdanromanovich4912 3 жыл бұрын
This is simply the best KZbin 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!
@firezunami
@firezunami 7 ай бұрын
That is so true
@oldbootz
@oldbootz 5 жыл бұрын
and on the eve of the year 10000 there was the great cookie expiration crisis...
@dawid_dahl
@dawid_dahl 4 жыл бұрын
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.
@reveluv8851
@reveluv8851 4 жыл бұрын
@@gl3nda96 set it to 1 ad
@nedaltrebor8553
@nedaltrebor8553 4 жыл бұрын
@@gl3nda96 couldn't you set it programmatic. Like, get current year > add 2
@barbelljoe
@barbelljoe 4 жыл бұрын
@@dawid_dahl shit I will have to find my password to login again.
@Ginfio
@Ginfio 4 жыл бұрын
What kind cookies? Chocolate chip.. cookies..? Or Ok nvm.
@pastorfred2543
@pastorfred2543 5 жыл бұрын
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.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you! I'm glad my video was insightful for you.
@sumanthchippagiri1687
@sumanthchippagiri1687 3 жыл бұрын
@@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.
@Jhonny610
@Jhonny610 3 жыл бұрын
0:00 Overview 4:56 LocalStorage 8:10 SessionStorage 9:43 Cookies
@BusinessWolf1
@BusinessWolf1 2 жыл бұрын
thank yoy
@koderkev42
@koderkev42 2 жыл бұрын
Thanks!!
@somehappyguy6598
@somehappyguy6598 5 ай бұрын
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.
@TimothySmithii
@TimothySmithii 4 жыл бұрын
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!
@CJFX_
@CJFX_ 3 жыл бұрын
When you know what you're talking about you can put it in simple terms 😆
@jellegalgenbeld7226
@jellegalgenbeld7226 3 жыл бұрын
lastName=Smith
@DenzelHooke
@DenzelHooke 2 жыл бұрын
@@CJFX_ Sometimes yes, sometimes no
@ojasdighe991
@ojasdighe991 2 жыл бұрын
@@DenzelHooke precise
@youvegotmail9385
@youvegotmail9385 2 жыл бұрын
He's the man. Crazy knowledgeable.
@BoLeee
@BoLeee 4 жыл бұрын
Yo! Thanks for breaking down topics like this, many youtube searches lead to you and i'm never dissapointed. Thank you
@shawnyiwerd
@shawnyiwerd Жыл бұрын
Tack för att du delar med dig. Jag har använt Morelogin nyligen och det skyddar integriteten.
@langsonchibili1329
@langsonchibili1329 5 жыл бұрын
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.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you!
@Alireza-kw6fj
@Alireza-kw6fj Жыл бұрын
missed your voice for about 6 month after you full javascript course, I'm happy to hear you again ;)
@AlekVila
@AlekVila 6 ай бұрын
I appreciate that you share solid information. You are consistently good. Thank you!
@nehakumar9889
@nehakumar9889 4 жыл бұрын
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.
@viajeromero
@viajeromero 4 жыл бұрын
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
@harshilparmar9076
@harshilparmar9076 5 жыл бұрын
bro... thanks for putting much effort..this channel is awesome!!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks! I love making these videos so it doesn't even feel like work. Well at least most of the time :P
@jeromelanteri6469
@jeromelanteri6469 4 жыл бұрын
@@WebDevSimplified even if you do not copy what is existing already (and that is exactly the same) ?
@anikdas5218
@anikdas5218 3 жыл бұрын
Why I love his videos! Because his contents is to the point. No extra shit.
@pallad1461
@pallad1461 Жыл бұрын
Best tutorials about web developing on KZbin
@govinda399
@govinda399 3 жыл бұрын
you are my favourite content creator. I watch alot of your videos nowadays.
@_briantravis
@_briantravis 2 жыл бұрын
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!
@ridl27
@ridl27 5 жыл бұрын
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 =)
@TaskSwitcherify
@TaskSwitcherify 2 жыл бұрын
Great video. FYI: 10 MB and 5 MB means MEGABYTES, which is 8x larger than megabits.
@bahramiwd4812
@bahramiwd4812 5 ай бұрын
I had a question and a problem and the theoretical stuff (the table) at the first of the video just solved everything! Thanks!
@jayreyes828
@jayreyes828 3 жыл бұрын
My goodness you are covering all the necessary topics, my friend
@rahulbhatia1313
@rahulbhatia1313 4 жыл бұрын
I did not knew Jordi el niño also had a web development youtube channel. great work, keep it!
@ginbarato1178
@ginbarato1178 3 жыл бұрын
xd
@giorgieliozashvili633
@giorgieliozashvili633 2 жыл бұрын
Hey Kyle! Thanks. basically, you taught me React and these little things in javascript. Thank you. You're a huge time saver
@karlomoonblade
@karlomoonblade 5 жыл бұрын
keep the very detailed straight to point explanation , i really can understand the topic without watching several times
@Sam-xv5ko
@Sam-xv5ko 4 жыл бұрын
I was searching here and there to learn these things and you really simplified them. Thank you, man, you saved my day. Subscribed
@NITESHSINGHNRS
@NITESHSINGHNRS 5 жыл бұрын
Every day I am learning from your channel...great work ..
@alanhunt3772
@alanhunt3772 4 жыл бұрын
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.
@happyv6872
@happyv6872 5 жыл бұрын
Man, what a beautiful set of eyes! Your voice is also very nice to listen to. You deserve more subs and views.
@steves1015
@steves1015 4 жыл бұрын
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.
@erikstone8336
@erikstone8336 3 жыл бұрын
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
@bdk9830
@bdk9830 3 жыл бұрын
The best lecture of cookies and storages in the world. thanks Kyle !
@ekaterinaastrid2636
@ekaterinaastrid2636 4 жыл бұрын
I really love u, man! this is the best channel about coding.
@WilsonGalter
@WilsonGalter 5 жыл бұрын
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!
@jayteecollins1279
@jayteecollins1279 Жыл бұрын
Your explanation is always on point! Good job!
@aaronmacken
@aaronmacken 5 жыл бұрын
Encountered an interesting bug when working with redux-persist recently. Redux-persist was working just fine on my desktop computer by saving the current redux state to my web browser's local storage. I pulled from my local git repo on my mac and begin implementing a new action for my reducer. Next thing I know, all of my redux related functions are causing the application to break. As it turns out, I had created a logic error within my reducer, but fixing the logic error itself did not solve the problem. Why? Because redux-persist had already saved that logic error into that browsers local storage. Local storage also does not automatically purge itself, so the solution was for me to delete that browsers local storage and then re-run the application. Lucky for me, I had watched this useful video before using redux-persist to figure out how local storage actually works, as I had not previously used it in the past. Great learning experience and the video really helped!
@TradingBloke
@TradingBloke Жыл бұрын
web dev of non cs bckgrnd -best channel
@indestructible-today
@indestructible-today 3 жыл бұрын
Great tutorial, thanks. It's crazy how express-session uses cookies for server-side.
@underwater2003
@underwater2003 3 жыл бұрын
First working tutorial i found in half of year! Thanks!
@steven5712
@steven5712 3 жыл бұрын
Thanks, man. You are awesome. I was just wondering how Redux persist works and this video came up in my recommendation. Great stuff!
@horrorbreakdown
@horrorbreakdown 5 жыл бұрын
Great channel, I've learned a lot. You're very clear and to the point.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you!
@JoeDebono
@JoeDebono 4 жыл бұрын
- 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.
@Sh0Eng
@Sh0Eng 8 ай бұрын
i liked the video before watching it. this is how much i trust this guy.
@kagisohadebe9913
@kagisohadebe9913 4 жыл бұрын
my first web dev video and it was hella helpful thanks for it , liked & subscribed looking forward to more content
@breebw
@breebw 4 жыл бұрын
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."
@edgarasben
@edgarasben 3 жыл бұрын
Sadly.
@rohitkudalkar92
@rohitkudalkar92 5 жыл бұрын
Thank you sir. This is what I was searching for. Thanks bro all your unique videos with best example. Love and support ❤️
@erykczajkowski8226
@erykczajkowski8226 3 жыл бұрын
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.
@19jewels95
@19jewels95 4 жыл бұрын
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 :)
@master_ofnone
@master_ofnone 2 жыл бұрын
This was a great video! Detailed yet concise. Defs subscribing :)
@gossgorl
@gossgorl Жыл бұрын
I've been browsing through videos on this and just felt relief when I saw your face lol
@ZazaMasta
@ZazaMasta 3 жыл бұрын
This guy has done everything I need, he is a walking institution !
@jevessonsouza7947
@jevessonsouza7947 2 жыл бұрын
2 words: Thank You! Your videos have been help me a lot!!!
@frontend3409
@frontend3409 2 жыл бұрын
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
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars Жыл бұрын
thank you, simple and to the point :)
@lucaspedro6488
@lucaspedro6488 3 жыл бұрын
Thank you very much for the explanation. Very helpful content. Keep it up!!
@a4yster
@a4yster 2 жыл бұрын
Kyle is rockin' it!
@swibay
@swibay 4 жыл бұрын
You inspire me a lot dude! Tanzania🇹🇿
@faithyintii8457
@faithyintii8457 4 жыл бұрын
Thanks man... it was quick, straight to the point and informative... i am grateful. you just earned a new sub... :)
@quicksilvuhh
@quicksilvuhh 5 жыл бұрын
You're great at explaining things. I'm very grateful!
@tremolony4924
@tremolony4924 3 жыл бұрын
Hi, I time travelled back from the future.... The year was 10,000 & I can confirm that this cookie did in fact expire.
@BORIS_DIGITAL_HUB
@BORIS_DIGITAL_HUB 3 жыл бұрын
Thank you for that good explanation, Kyle!
@musiclovers8488
@musiclovers8488 3 жыл бұрын
You are the best !! Thank you ☺️ man ...
@doylemcteller1335
@doylemcteller1335 5 жыл бұрын
Dude, you‘re always on point. Thanks a lot.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome
@youvegotmail9385
@youvegotmail9385 2 жыл бұрын
Opening chart was super helpful .
@briandacallos4234
@briandacallos4234 4 жыл бұрын
You never disappoint me kyle
@leg3ndtariq
@leg3ndtariq 5 жыл бұрын
Sir, can I just give you a hug if thats not inappropriate in your country 💘 YOu are making our life easier. Love from all of US 💥💥💥
@ca7986
@ca7986 2 жыл бұрын
What an amazing explaination! you are amazing dude!
@Hangoutapp
@Hangoutapp 3 жыл бұрын
Kyle the thumbnail you got on this video an other is awesome
@InnaKasyan-f8h
@InnaKasyan-f8h 2 жыл бұрын
Many thanks for such clear and structured explanation!
@smurffronda2951
@smurffronda2951 3 жыл бұрын
thanks man, have a great week
@Koenv3
@Koenv3 5 жыл бұрын
Nice video! The size of localstorage and sessionstorage in the video is in megabytes not megabits.
@asimalmashni5234
@asimalmashni5234 4 жыл бұрын
and cookies in byte
@videogamesare1
@videogamesare1 5 жыл бұрын
This video, the CSS position video...you are the real deal
@kj6372
@kj6372 4 жыл бұрын
Thank you so much for uploading such a simple and easy to understand tutorial video
@adonsav
@adonsav Жыл бұрын
Thanks for your videos! Great work 🙏
@sruthisoman6533
@sruthisoman6533 4 жыл бұрын
Excellent presentation. This helped me understand the concept so much better. Thank you✌️
@SepSol75
@SepSol75 4 жыл бұрын
As always fantastic explanation
@gregruiz921
@gregruiz921 2 жыл бұрын
Great overview Kyle... appreciate how you showed everything real time with code and the dev tools. Thanks!
@ahmadjunaidi21-l6l
@ahmadjunaidi21-l6l 3 ай бұрын
goated yt channel
@michalkrajewski7092
@michalkrajewski7092 11 ай бұрын
You did it, thanks, that's the explanation I was looking for, Regards
@AnvarAzizovMusic
@AnvarAzizovMusic 4 жыл бұрын
Thank you for the detailed explanation.
@_wekesar_6639
@_wekesar_6639 3 жыл бұрын
Web dev has never been simpler.. Thanks wds 😌
@jagdishshetty4782
@jagdishshetty4782 5 жыл бұрын
Really useful !!! Thx so much !!! Keeping making more videos !!!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I don't plan to stop anytime soon.
@azimmalpekar9072
@azimmalpekar9072 3 жыл бұрын
Very good explanation, to the point.
@giordanovaldez8348
@giordanovaldez8348 5 жыл бұрын
Liked and subscribed. Great explanation for everything. Keep up the good work!
@avvinashjha
@avvinashjha 3 жыл бұрын
These videos are good please share more ...🙏
@吳文進-j4x
@吳文進-j4x 3 жыл бұрын
Thanks Kyle! you explained it very clearly !!!
@asimgiri4269
@asimgiri4269 4 жыл бұрын
In order to pass object as values in local/session storage : const obj = {value: 1, state: true, name: 'I am object one'}; localStorage.setItem('myObject', JSON.stringify(obj));
@cr_spirit3986
@cr_spirit3986 Жыл бұрын
I'm building a user system right now, this thing came just in time
@devanshishah9481
@devanshishah9481 3 жыл бұрын
Nicely explained. Thank you for passing the knowledge!!
@SubhobrotoRoy
@SubhobrotoRoy 5 жыл бұрын
Thank you for making such an informative video!!!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome!
@riznimohamed
@riznimohamed 3 жыл бұрын
Best explanation. I learned what I exactly need to know
@samcodes2912
@samcodes2912 4 жыл бұрын
short explanation and clear as water 👍
@joseantoniovela9599
@joseantoniovela9599 2 жыл бұрын
thanks for all, you are the best !!!!!!!!!!
@ray_bags
@ray_bags 4 жыл бұрын
Thank you so much. This really explained everything really well.
@arnobislam1615
@arnobislam1615 2 жыл бұрын
amazing and simplest explanation
@webeingmarketingteam5881
@webeingmarketingteam5881 2 жыл бұрын
Thanks, that was super useful! 🙏
@dealstunner8317
@dealstunner8317 4 жыл бұрын
Fantastic as always 👍
@mikedqin
@mikedqin 5 жыл бұрын
Excellent. very clear to explain the concepts. Can you please give a concrete example of the 3 storage when to use it for what purpose? Thank you so much. You rock.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Cookies are something that is used a lot for authentication since it always gets sent to the server. Session is for things like a shopping cart that will go away when you stop browsing the site, and local storage is for things like a todo list that should stick around even after you leave the site.
@mikedqin
@mikedqin 5 жыл бұрын
@@WebDevSimplified Great, my Amazon shopping cart is persisted I guess whenever I log in, and I can see items are still there, but I guess Amazon use case is different. When to use the Cache store? I know service worker uses it. Thank you for your prompt reply.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
@@mikedqin The only time I have seen that used is with service workers. Other than that I don't have any specific use case for it.
@mikedqin
@mikedqin 5 жыл бұрын
@@WebDevSimplified Awesome, thanks for all your prompt replies. I am looking forward to more tutorials from you.
@大盗江南
@大盗江南 5 жыл бұрын
Thank you man, simple and clear
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 671 М.
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Local Storage & Session Storage [ with Code Examples ]
14:52
Akshay Saini
Рет қаралды 235 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Local Storage Explained In 10 min | Javascript
10:53
Redhouane Aouadi
Рет қаралды 68 М.
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 311 М.
Why Is Array/Object Destructuring So Useful And How To Use It
13:24
Web Dev Simplified
Рет қаралды 432 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 890 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,2 МЛН
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 423 М.