Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hello friends , i need help in mvc application ,
is there any way to implement forms authentication and login functionality in asp .net mvc2 without using Membership Provider . i want a sample application or any urls u found
Posted
Comments
parul77 28-Apr-12 6:27am    
Reason for my vote of 5
ny 5!

Security
The first three tutorials focus exclusively on forms-based authentication without discussing Membership. These first three tutorials - especially tutorials #2 and #3 - should get you moving in the right direction.

ASP.Net MVC 3 Custom Form based authentication & Role Based entitlements

Custom form authentication / Authorization scheme in ASP.net MVC
 
Share this answer
 
Comments
thatraja 24-Dec-11 13:58pm    
5!
Monjurul Habib 24-Dec-11 13:59pm    
thank you RAJA
you need to
a) Create a class that inherits System.Web.Security.MembershipProvider.
MembershipProvider is an abstract class, so you are readily shown what methods need to be implemented.
b) The names are pretty self explanatory, so you can probably more or less copy your existing logic.
Have a look there-[Building a MVC2 Template, Part 8, Adding a Custom Membership Provider][^]
In addition this answer[^] also might help you.
 
Share this answer
 
v2
Comments
Monjurul Habib 24-Dec-11 11:09am    
5!
RaviRanjanKr 24-Dec-11 15:49pm    
Thanks :)
thatraja 24-Dec-11 13:57pm    
5!
RaviRanjanKr 24-Dec-11 15:49pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900