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

[whatwg] How long should sessionStorage data persist?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 3 Apr 2009 22:16:24 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0904032215381.25058@hixie.dreamhostps.com>
On Fri, 3 Apr 2009, Jeremy Orlow wrote:
>
> I created a page that sets a variable in sessionStorage, then I 
> navigated to a different domain, then I went back to the page and 
> checked if the variable was still set.  In Safari 4 (beta) it is.  In 
> IE8 it isn't. The spec is not terribly clear: "When a top-level browsing 
> context is destroyed (and therefore permanently inaccessible to the 
> user) the data stored in its session storage areas can be discarded with 
> it, as the API described in this specification provides no way for that 
> data to ever be subsequently retrieved."
> 
> Can anyone explain what's intended here?  If not, can the spec make it 
> more clear?

IE8 is buggy according to the text you quoted. I don't understand why the 
text is unclear. Does the definition of "browsing context" not leave this 
unambiguous?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 3 April 2009 15:16:24 UTC

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