Looks like you just need key / value pairs. window.localStorage is your friend!
This is a key / value repository that is saved when the page is refreshed and on all pages in the same domain (for example: run window.localStorage.userName = "John Doe"; somewhere on "http://www.somedomain.com/index. html ", and then when the user goes to" http://www.somedomain.com/page2.html ", if you run" window.localStorage.userName ", it will still return" John Doe ".
Let me know if you need snippets of code.
source share