there is an official saying that the sessionStorage object is bound to a server session so it is not available when the file is running locally.
but I tried it. It"s OK to open a html file directly with a browser. You can set and read sessionStorage. Is there anything wrong with my understanding? And I don"t know what a server session is
.