I have created blank Asp.Net-MVC 3 web application and want to write my own very simple authentication. Created a database where all information about users will be stored. Created a controller, view with textboxes for login and password.
So now user opens my site, input his login and password, this information is received on server and handled(via my own ValidateUser method). Where should I store information about this user for further using?
If you didn`t understand what I want then the question is: can I implement my own authentication process without using standard MembershipRoles and MembershipProviders?
You can write your own custom MemberShipProvider and call your own ValidateUser method.
Check this Implementing a Membership Provider
If you do this way then you can use the advantages like