JavaScript - Local Storage

javascript-dom

http://www.sitepoint.com/better-queries-with-breeze-js
https://github.com/addyosmani/polymer-localforage
https://github.com/addyosmani/basket.js
http://www.sitepoint.com/9-javascript-libraries-working-with-local-storage/
http://www.nczonline.net/blog/2010/04/13/towards-more-secure-client-side-data-storage
Learning from XAuth: Cross-domain localStorage
Local Storage And How To Use It On Websites
http://www.nczonline.net/blog/2012/04/25/the-performance-of-localstorage-revisited/
Boost Ajax performance using local storage
http://www.nczonline.net/blog/2012/03/07/in-defense-of-localstorage/
http://www.javascriptkit.com/javatutors/domstorage.shtml

// JavaScript - Difference between a cookie, sessionStorage and localStorage:

Cookies are sent to the server on each subsequent requests.  sessionStorage
and localStorage are not sent to the server.  sessionStorage ends when the
the browser is closed, and the data that is stored in sessionStorage is gone.
Data that is stored in localStorage are not destroyed when the browser is 
closed.

// Using localStorage
// Use the setItem() and getItem() method of the window.localStorage object:
localStorage.setItem('favoriteflavor','vanilla');
var taste = localStorage.getItem('favoriteflavor');
localStorage.removeItem('favoriteflavor');

// We cannot directly store objects in localStorage, so we have to use
// JSON.stringify and JSON.parse:
localStorage.setItem( 'car', JSON.stringify(car) );
JSON.parse( localStorage.getItem('car'))
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License