Solved

Sample Code for MVC 4 forms authentication. Any recommendations

Posted on 2013-01-17
4
682 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
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
Amandeep Singh Bhullar earned 310 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 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