top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the lifetime of local storage?

+2 votes
973 views
What is the lifetime of local storage?
posted Feb 19, 2015 by Merry

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

According to John Resig, it's not possible to specify expiration. It's completely up to the user.

http://ejohn.org/blog/dom-storage/

Obviously, your own application can actively remove stuff if it decides it's too old. That is, you can explicitly include some sort of timestamp in what you've got saved, and then use that later to decide whether or not information should be flushed.

answer Feb 20, 2015 by Vrije Mani Upadhyay
...