tymondesigns / angular-locker

🗄️ A simple & configurable abstraction for local/session storage in angular js projects
https://npm.im/angular-locker
MIT License
314 stars 42 forks source link

How to save info in each tab in the same browser #36

Open hank-hong opened 7 years ago

hank-hong commented 7 years ago

The version is angular-locker "2.0.4".

If I put the value in storage " locker.driver('local')", the value will always be saved even I close the browser.

But If I used "locker.driver('session')" to save value, The value won't be get in another tab.

Could yo please give me some suggesion?

Thank you.

shaheershabbir commented 7 years ago

Session storage doesn't work across tabs. https://developer.mozilla.org/en/docs/Web/API/Window/sessionStorage

simison commented 7 years ago

@tymondesigns This can be closed.