JavaScript Tutorial #11 – Cookies & Local Storage




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”

  1. 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?

  2. 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!

Leave a Reply