For a web page that I am working on, I am storing a key-value pair in the session storage and access it in several places. There is one place in the code where I remove this item from sessionStorage with window.sessionStorage.removeItem(<key>).
However, I have noticed that if my webpage on a specific tab remains open while browsing other pages (unrelated to my page), when I switch back to my web page, the removed key-value pair is restored, and I can see in the sessionStorage.
Can sessionStorage restore removed items?
I have noticed this issue both on Edge and Chrome.
Thanks :)