title: When is sessionStorage actually cleared?
body: <p>I have some javascript that checks for an object in <code>sessionStorage</code>, and uses it to refill an input field. I use this to help users on my site if they leave the form unfinished and either navigate away or try to submit the form after their session has expired.</p>
  <p>My understanding is that <code>sessionStorage</code> is NOT linked to a server session, it is linked to the browser, so whether I have a new session on the server or not is irrelevent.</p>
  <p>This was supported when I was testing this initially a few months ago. However, it seems to no longer be the case, and when I clear my session cookie and reload my page, my <code>sessionStorage</code> is also cleared out. This is using both Chrome and Firefox.</p>
  <p>I don't want to use <code>localStorage</code> as that could cause issues with shared computers, whereas <code>sessionStorage</code> will be wiped out when the browser windows is closed.</p>
  <p>JS to get the value of my stored object:</p>
  <pre class="lang-js prettyprint-override"><code>JSON.parse(sessionStorage.getItem(&quot;draftPost&quot;) || null);
  </code></pre>
  <p>JS to save the value:</p>
  <pre class="lang-js prettyprint-override"><code>$(&quot;#wallText&quot;).on(&quot;change&quot;, function(){
      sessionStorage.setItem(&quot;draftPost&quot;, JSON.stringify(draftPost));
  });
  </code></pre>