About sessionStorage

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

.
Mar.11,2021

sessionStorage maintains a separate storage area for each given source (given origin), which is available during a page session (that is, as long as the browser is open, including page reloading and recovery). Web Storage API


means that the sessionStorage stored on a.com 's website cannot get the sessionStorage in b.com

Menu