W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2009

[whatwg] localStorage behavior when cookies mode is session-only

From: Ian Fette <ifette@google.com>
Date: Thu, 9 Apr 2009 14:16:25 -0700
Message-ID: <bbeaa26f0904091416r3ded6dc7o10cf6887965148a8@mail.gmail.com>
There's already a giant thread about this topic, I suggest you join that
thread.
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-April/019238.html

<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-April/019238.html>"Private
browsing vs. Storage and Databases"

Cheers,
Ian

On Thu, Apr 9, 2009 at 2:13 PM, Honza Bambas <honzab at allpeers.com> wrote:

>  In the W3C spec for localStorage
> http://dev.w3.org/html5/webstorage/#the-localstorage-attribute is said to
> present it (the persistent storage) the same way as cookies.
>
> There were suggestion to throw DOM_QUOTA_ERROR exception when storing to
> localStorage in case when cookies are in a session-only mode for a
> host/page. It makes sense from several reasons. This way web apps may decide
> or inform user about situation that the page cannot store to localStorage
> while there is no way for the page to figure out that cookies mode is
> session-only and web app still may freely read from the storage.
>
> My suggestion is then:
> - allow a page to obtain valid localStorage object
> - allow read from it
> - throw DOM_QUOTA_ERROR when storing to it
>
> But I don't know what to do in case of call to clear() and removeItem()
> methods. It would exposes the cookie behavior again when it fails/throws.
>
> -hb-
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090409/8e5e600e/attachment.htm>
Received on Thursday, 9 April 2009 14:16:25 UTC

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