Essentially, you want to try something when the user returns, so here is my answer.
Well, certainly it is possible. You can cross the house and put your stuff in localstorage.
LocalStorage only supports string.
Use localStorage if you want the data to be stored outside of the browser close and SessionStorage if I want the data to be saved in a closed browser.
NOTE : IE7 + support for SessionStorage and LocalStorage
It has a lot of memory compared to cookies (4kb with a permitted number of files from 15 to 20 for each domain).
- IE (10 mb)
- Mozzilla (5 mb)
- Chrome (2.5 mb)
source share