Possible Duplicate:
When do items in HTML5 local storage expire?
My web application uses client side storage (sessionStorage
and localStorage
). However, I want this data to be expired after some time (eg. 2 days). It was a super easy task with expiration date of cookies but I don't know how to set an expiration date for HTML5 storage.
Any ideas how to solve this problem? Efficiency and simplicity is important.