The best you can do is to set a timestamp in storage, and if the user visits your site after a specified amount of time, then you can delete the stored data.
sessionStorage
should work the same way, except when it doesn't even last long enough for your timed expiration. In that case, it'll expire sooner.