[whatwg] Proposal for Web Storage expiration

On Wed, 25 Aug 2010, Aryeh Gregor wrote:
> On Wed, Aug 25, 2010 at 6:33 PM, Ian Hickson <ian at hixie.ch> wrote:
> > This relies on sites actually using this feature. I don't see any reason
> > to believe sites would use this enough to make a dent here.
> 
> A lot of sites set expiration dates for cookies, don't they?

Based the list of cookies on my browser, not enough of them do to make a 
dent here.


> Yes, this would just be a convenience.  I don't see anything you could 
> do with built-in expiration that you couldn't do without.  You could 
> always emulate it by storing the last-modified date, and then wrapping 
> every access in a function that checks the last-modified date and 
> deletes it if it's too old.

Well, the one thing you can't do that way is expire data even without 
revisiting the site. I just don't know if that's especially useful.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 25 August 2010 16:28:01 UTC