With PHP it\'s possible to check if a cookie exists. Is there a similar way to check if a HTML5 sessionStorage (webstorage) item exists?
You want to pass a variable from HTML5 into PHP, which requires auto-submit. Try this, though I've never tried it myself.
Create an invisible text input. Have JavaScript change the input value to the value returned from sessionStorage.getItem("key"), and use the onload='this.form.submit()' line in the tag.
I didn't actually do the work for you, but I hope this gives you a good idea.