I have implemented a user administration system as per the steps described in the book "Pro ASP.NET MVC 5 Platform" chapters 13 through 15. The code from these chapters are available for free download from the Apress website at http://www.apress.com/9781430265412. I understand this question is probably best suited for someone who has done the same coding exercises, but I hope they and others can help me with this question. The system is based on the Identity framework of the .NET platform. My question is, how can I implement the following requirement for a system that is designed as per the steps of this book:
If a user is logged in, he/she should not be allowed to log in from another browser, and an appropriate message should be displayed. Additionally, a closed browser should be considered as logged off, even if the Log Out button wasn't clicked. Are there some mechanisms in the Entity Framework or Identity framework that would allow me to check in the within the Login action to see if the user is currently authenticated in a session?
Thank you.