How to Implement form Authentication in MVC? Manish Kumar314017-Jun-2017c#mvc4 Updated on 23-Sep-2020
Manish Kumar
17-Jun-2017Step 1- Set the form authentication mode equals to form
Step 2-In web.config add following code
Inside system.web
Step 3-In this step we need to controller for checking authentication. Here we check that user is authorize or not.
In home controller add following code
Action decorated with Authorize cannot be called by unauthorized user.