Is forms authentication possible in mvc? If yes then explain in detail how?
Answer Posted / Anil Kumar Singh
Yes, Forms Authentication is possible in MVC. It's a built-in authentication system provided by ASP.NET MVC to handle user login and authorization. Here's a brief overview of its workflow:
1. Users submit their credentials (username and password) via an HTML form.
2. The form data is received by the Controller, which validates the credentials against the database or another secure storage solution.
3. If the credentials are valid, ASP.NET creates a security cookie containing encrypted user information such as identity and roles.
4. The cookie is sent to the client browser, allowing subsequent requests to be authenticated without needing to re-enter login details.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers