[whatwg] Proposal for Web Storage expiration

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