angularjsng-idle

Ng-Idle issue with multiple tabs


If we use same application in multiple tabs, both application uses the same localstorage for storing ngIdle.expiry and one application extends the session of other one. Is there any work around to fix this issue in current version, like configure sessionstorage instead of localstorage or like change the id field in the ngIdle.expiry.


Solution

  • In ng-idle documentation, I don't see a way to change which storage you want to use.

    Hence, you can maybe keep a copy of the project in your codebase (or send a PR) with this line changed to use sessionStorage instead. It might just work how you want it to.