Though there are many ways to handle this situation, I recently had to try the same and ended up using localStorage and it really helped to handle data at various levels of requirements.
Getting to use it is so easy and simple. Just make sure you have HTML5 for schema validation and rest is swift.
When setting up the value, this is what needs to be done :
localStorage.setItem("firsttest", "Hello user...");
When retrieving the value, just do it as below..
var testvalue = localStorage.getItem("firsttest");
On a quick note, lets see what is localStorage.