This is tutorial looking at how we can use cookies or local storage to store information over multiple pages or sessions. All Links and Slides will be in the description. Subscribe for more cool stuff!
Slides & files – https://github.com/DrapsTV/DrapsTV_Materials/tree/master/Javascript%20Tutorials/Tutorial11%20-%20Cookies%20%26%20Local%20Storage
Steam Group: http://steamcommunity.com/groups/DrapsTV
Twitter: https://twitter.com/DrapsTV
Facebook: https://www.facebook.com/DrapsTV/
If you like what you see be sure to subscribe and thumbs up!
Original source
23 responses to “JavaScript Tutorial #11 – Cookies & Local Storage”
awesome.
Great video! You really helped me to understand the difference between cookies and local storage, and how to implement them.
worst teacher on the internet .. copying from another screen codes
really awesome explaning sir pls make video angular 2,4,5 login , register , forget password sir pls make….
Thank god i love you for showing me the local strorage. You just saved my school project.
i watched that video at speed 2
awesome!!…so local storage is a better choice is what im hearing, or sessions storage? also u just got one more subscriber
Has anyone tried the code ? I copied the code and tried to run it through 3 different browsers but does not work!
thanks for the video…wonderful lecture on cookies and local storage…may i know what theme are you using for your notepad++???
Copied your exact code, using Microsoft Edge. nothing popped up.
not another hindi fucker, good
do you know how to do this with Electron? I can't find a good cookie tutorial to save and load cookies within Electron apps! I would really like to learn how to though…
Very helpful, and very easy to understand the concept. Thanks!.
if you close web, are the cookies saved on the browser ?
I dont know if this question has shown up and i might sound very much like a noob, but when you access the local storage, where exactly does the file end up with information?
whats the alternative way to do this? maybe an easier way? like websitename.php.get(variablename)??!!?
you know a script how to pass a whole table like that? for instance a table like this table = {total, rows[]} ?! all rows contain 3 var (name, amount, price)?
In the save cookies, in order for the cookie to expire, you should add expires. E.g:
cookieString = key + "=" + myCookies[key] + ";expires =" + expiresAttrib + ";";
otherwise it won't work with the code you gave!
When I click on save to cookies, nothing appear, and when I click on load from cookies, it shows undefined for both of input texts
didn't know about local storage.interesting.
"you can't use cookies on local files on chrome " no wonder it doesn't fucking work!!!!
Superb videos man, keep it up! I learn so much from your videos and you explain so well.
wassup dude