Click here to Skip to main content
12,304,761 members (63,558 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP .NET MVC2
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 24-Dec-11 2:59am
member6016.1K
Comments
parul77 28-Apr-12 6:27am
   
Reason for my vote of 5
ny 5!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
thatraja 24-Dec-11 13:58pm
   
5!
Monjurul Habib 24-Dec-11 13:59pm
   
thank you RAJA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160530.1 | Last Updated 24 Dec 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100