今回はsessionStorageのことについて.localStorageはサイト単位で永続的に保持されますが,sessionStorageはウインドウ単位で揮発するという非常に儚い特製で,使い所がイメージできておりませんでした. HTML5 SessionStorageの挙動によれば, SessionStorageはほんとにウィンドウごとに異なる。例えばCtrl+Nで開いた新しいウィンドウでは、新しいSessionStorageが生成される。サイトごとに共有されるクッキーとは決定的に異なる。 ページをリロードしても、SessionStorageは消えない。 window.open()で作成したウィンドウは、元のウィンドウから複製された新しいSessionStorageを持つ。両者は別々のSessionStorageなので、window.open()後にSessionStorageを変更し