Something to keep in mind with sessionstorage on a mobile safari.
As stated in the mozila.org document mentioned by timolawl:
Note. Starting with iOS 5.1, Safari Mobile stores local storage data in a cache folder, which is subject to periodic cleaning, at the request of the OS, usually if the space is short.
This cleanup happens too often on a mobile safari, and all sessionstorage variables are destroyed for all open tabs.
For example, by opening 5 tabs and then loading a new page with a lot of java and css, you can clear it by destroying all sessionstorage variables.
However, localstorage variables are preserved.
In addition, on safari (I believe both on the desktop and on the mobile phone) closed viewing will prevent the use of either localstorage or sessionstorage.
source share