Reputation: 97
I am new to MVC but not known how to manage session.in my application for login I am using simple membership function.when i am first login to application works properly,but when logout is done and in address bar giving proper controller and action wihtout login it opens directly without login.I think at this situation session is required but how that apply is not known. Please suggest some solution for this.
Advanced thank you.
Upvotes: 0
Views: 150
Reputation: 516
ASP.NET provides a framework for handling user authentication, called "Identity". This is available in both ASP.NET Core (latest) and ASP.NET 4, with good documentation available for both.
ASP.NET Core: https://docs.asp.net/en/latest/security/authentication/identity.html
ASP.NET 4.6: http://www.asp.net/identity/overview/getting-started/introduction-to-aspnet-identity
Both sites have examples of how to build up the applications with it.
Upvotes: 1