The Storage
model was meant to be a cache for scripts; not of a spur-of-the-moment data holder. Infact sessionStorage
should clear as soon as the protocol+domain is navigated away from. With that said, the simplest way would be to store and check a 'hold-until' value at each page view, and update/clear-storage it as needed