gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.34k stars 461 forks source link

Problem making $sessionStorage work accross different browser tabs #242

Open vaoan opened 7 years ago

vaoan commented 7 years ago

I'm using an old issue to compare with my problem. This is my version where i used $sessionStorage and the tabs are unsynced http://plnkr.co/edit/2V0Veh?p=preview Reading other issues, i found this https://github.com/gsklee/ngStorage/issues/6 and the plunkr i'm using is based on this one http://plnkr.co/edit/Pycw5R?p=preview

I don't know how to keep my $sessionStorage the same in every tab on the same browser.

jhkchan commented 7 years ago

$sessionStorage only works in a tab. If you need to work across different tabs, use $localStorage instead.