This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13690 - method setItem(key, value) Why don't you fix a third optional parameter to set the "duration" of the key/value pair. If it is not set the key/value pair will not expire otherwise it will expire as it is set in the 'duration' parameter.
Summary: method setItem(key, value) Why don't you fix a third optional parameter to se...
Status: RESOLVED LATER
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Web Storage (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
: 13691 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-06 06:40 UTC by contributor
Modified: 2011-08-08 22:01 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-08-06 06:40:15 UTC
Specification: http://dev.w3.org/html5/webstorage/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
method setItem(key, value)

Why don't you fix a third optional parameter to set the "duration" of the
key/value pair. 
If it is not set the key/value pair will not expire otherwise it will expire
as it is set in the 'duration' parameter. 


Posted from: 79.50.20.32
User agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Comment 1 Arthur Barstow 2011-08-06 11:58:31 UTC
*** Bug 13691 has been marked as a duplicate of this bug. ***
Comment 2 Ms2ger 2011-08-06 13:11:15 UTC
This sounds somewhat useful, but shouldn't be added unless there is strong implementer support, which I don't expect.
Comment 3 Arthur Barstow 2011-08-08 19:23:12 UTC
Perhaps save this for the next version of the spec?
Comment 4 Ian 'Hixie' Hickson 2011-08-08 22:01:25 UTC
Yeah, this is a thing for a future version. IIRC there's a note in the spec source talking about this kind of thing already, actually.