jeudi 22 septembre 2016

How to implement user logout automatically and redirect to login page on inactivity using global.ascx and web.config in mvc?

I need to logged out the user after the inactivity of 5 minutes. I tried using

and PageBase class like in this link

But inheriting this PageBase class in every page is not possible in my big project. Is there any other method to do the logout after few minutes of inactivity? It should be applicable to whole big project other than writing the code inside each page or inheriting everypage from some base class?

Aucun commentaire:

Enregistrer un commentaire