W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2010

[whatwg] Proposal for Web Storage expiration

From: timeless <timeless@gmail.com>
Date: Fri, 30 Jul 2010 10:23:26 +0300
Message-ID: <AANLkTim=eYTJzPEG=+0z1sNKyGBva9fTZ-VK+ri-jito@mail.gmail.com>
On Thu, Jul 29, 2010 at 8:57 PM, Nicholas Zakas <nzakas at yahoo-inc.com> wrote:
> ??? setter creator void setItem(in DOMString key, in any data, [Optional] in
> unsigned long ttl);

> * If a TTL was previously set, and another call is made to setItem() that contains an invalid TTL (<= 0), then the original TTL remains.

As you've specified ttl as unsigned, the callee will not see your
'invalid' ttl, it will see a 'very large' ttl.
Received on Friday, 30 July 2010 00:23:26 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:25 UTC