Reputation: 51
I have a request page which every users have access to it but everyone can access to their own requests and can change it with some functions that work with AngularJS. The thing is that if the user logs out in another page, while the user haven't refreshed this page angular functions are continuing to work. I know I can Check the loged in user in the controller, but is there any way that angular prevent it? (I Use ASP.Net Authentication and MVC)
Upvotes: 0
Views: 31
Reputation: 3718
You have to use some sort of communication channel such as signal r or sockets to achieve that. One solution could be to intercept http request and check if the user is login. If isn't navigate to login page.
Upvotes: 1