10

If session storage lasts until the browser is exited, and iPhone/iPad does not exit mobile Safari, then how is sessionStorage handled? It would logically seem to be equivalent to localStorage, but it seems like there would have been a workaround or exception for this. Does anyone know how this is handled?

Thanks!

1
  • If someone finds ANY information at all regarding this, please leave a note....I suppose this question will just suffer incompleteness for now :'( Commented Aug 4, 2010 at 3:55

1 Answer 1

1

The browser can get killed on a memory warning, though.

In general, any specific behaviour might change between OS releases without notice. Maybe session cookies go away if you close all the relevant tabs. Maybe they go away if you close Safari and leave the phone for 24 hours. There's not much you can do apart from extensive testing, and even then, why do you care so much?

For that matter, how should a desktop web browser handle session cookies? I keep my browsers running for weeks (if not months, unless Safari crashes).

1
  • I don't care about this very much, since I am not using session storage. I was just thinking about this, and thought maybe someone here would know. To clarify, I am referring to HTML5 localStorage (specifically, session storage) and not session cookies. Commented Jul 19, 2010 at 21:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.