Hi, When you log out , set a flag like “isUserLoggedOut as true or false” and save this value somehere in localstorage or anywhere you like and then for every tab click, firt you check for that flag value , if that is true then redirect to login screen and delete routing history otherwise show the content of that page.
On Wed, 5 Dec 2018 at 7:19 PM, Alekhya Pulavarthi < [email protected]> wrote: > Hi > > Session management for Angular2 App > > Currently when I do logout in my application I am redirecting some logout > url but if the user has opened multiple tabs if he logged out in one tab > and move to other tabs if he does any event other tabs should automatically > logged out how to achieve this please suggest > > -- > You received this message because you are subscribed to the Google Groups > "Angular and AngularJS discussion" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- *Regards,* *Ashish Kumar* -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
