The Web Storage API provides objects for storing temporary (sessionStorage) and permanent (localStorage) data on the client’s device.
- Provides access to a list of key/value pairs, sometimes called "items". The amount of storage space is limited by browsers. Changes fire ‘storage’ event on dom/Window.
These APIs allow web apps to function offline. They are also a performance booster by storing large amounts of data locally instead of waiting for it to download. Lastly, they provide an easier programming model, with no server infrastructure required.
Portions of this content come from HTML5Rocks!.