I really like using HTML5 Storage since it's so easy to implement.<p>There's one thing you forgot to mention. You can also add arrays and objects to HTML5 Storage using JSON.parse and JSON.stingify as listed below.<p>var testObject = { 'one': 1, 'two': 2, 'three': 3 };<p>// Put the object into storage
localStorage.setItem('testObject', JSON.stringify(testObject));<p>// Retrieve the object from storage
var retrievedObject = localStorage.getItem('testObject');<p>console.log('retrievedObject: ', JSON.parse(retrievedObject));<p>I literally got this from stackoverflow (<a href="http://stackoverflow.com/questions/2010892/storing-objects-in-html5-localstorage" rel="nofollow">http://stackoverflow.com/questions/2010892/storing-objects-i...</a>)<p>Coincidentally I was building a small javascript bookmarklet for myself this weekend using localStorage. The bookmarklet allows you to make playlists on the fly. Check it out on <a href="http://www.jefvlamings.com/projects/Youtube/" rel="nofollow">http://www.jefvlamings.com/projects/Youtube/</a>
This is a good start, but I would like to see more real world experience on 1) How will this benefit w.r.t replacing or using alongside Sessions (HttpSession in java for example) 2) Size limits - 5mb and 1mb for IE7, storages different per scheme/domains 3) Data Security