by kirupa | 5 November 2012
Local storage is great for storing data that you want to persist across browser sessions. The way local storage works is by storing data in key and value pairs. To retrieve the data, just pass in the same key associated with what you stored earlier. If all this is news to you, take a few moments and check out my HTML5 Local Storage tutorial first. The rest of what I am about to say makes more sense if you know the basics of how local storage works.
This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/storing_and_retrieving_an_array_from_local_storage.htm