I got nowhere with this in General Web Dev, so I’m moving it here.
Hello, everyone,
I’m just playing around, a bit, with localStorage. Pretty interesting stuff, I must say.
However, I am experiencing a bit of a confusion.
I have code that will set an item to the current URL so that when the browser is closed then reopened, it should redirect to the same page on that site.
This is working flawlessly in FF and Chrome. But IE 10 (in STANDARDS mode, not quirks mode) is not saving this information. If I close, then re-open the browser and check the localStorage, the value I had set is gone!
Is anyone aware of what might be causing this?
UPDATE: Protected mode is off. And, yes, I am checking F12 to see that the value is being set - it’s just not being retained if the browser is closed.
Thanks for the link, @PaulOB. I guess I’m just disappointed in the “logic” of clearing localStorage with browsing history. It makes sense to clear localStorage when clearing cookies, or cached data. But to remove data from localStorage when clearing the list of URLs previously visited doesn’t seem very intuitive, to me. (shrug)