I am using the built-in ASP.NET identity template in VS 2015. I have all the proper AspNet tables in my LocalDb, and can manage users and roles effectively.

However, I want to make sure that users log out when finished. How can I efficiently implement a way to force logout after the user has been inactive for, say, 30 minutes? I don't want to start a 30 minute timer and then log the user out if he/she is still in the middle of their session. However, I do want them to be logged out after 30 mins of no activity.

Related posts

Recent Viewed