Home > Software engineering >  Javascript share sessionStorage among tabs
Javascript share sessionStorage among tabs

Time:04-22

I am using Javascript with Chrome and I need to share the sessionStorage content among different tabs.

I know that i could use localStorage but I don't want to get the same storage when I open a new Chrome window.

So I need a mix between localStorage and sessionStorage to share the storage among different tabs of the same window, but not among different Chrome windows

CodePudding user response:

What about using cookies? By default they get deleted when you close your browser.

  • Related