?
Solved

Sample Code for MVC 4 forms authentication. Any recommendations

Posted on 2013-01-17
4
Medium Priority
?
685 Views
Last Modified: 2013-01-29
Hello. I would like to create a simple login/registration screen for my website using MVC 4, with forms authentication. Authenticating against Sql server.

Does anyone know of a sample project they can share with me, in order to get up and running quickly? I just need solid code that works.

If the sample code only authenticates against username and passwords stored in the web.config file, that is okay. As I can modify the code to authenticate against sql server.
0
Comment
Question by:brgdotnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
Amandeep Singh Bhullar earned 930 total points
ID: 38792609
Hi,

Check out the links
http://code.msdn.microsoft.com/ASPNET-MVC-4-Sample-37924d68
http://www.asp.net/mvc/tutorials/mvc-4

and see if u can get something out of it usefull
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 38792964
Hi Aman,
I went to the links, however none of these appears to implement forms authentication? I will download the source and take a look.
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 38796408
I looked through the code in both of those projects. Nothing on forms authentication> Maybe someone else has some recommendations.
0
 
LVL 2

Author Closing Comment

by:brgdotnet
ID: 38833777
No good example of forms authentication. Thanks for trying though.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question