[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP.net 4 Login functionality - where are users saved

Posted on 2011-04-26
5
Medium Priority
?
390 Views
Last Modified: 2012-05-11
Hi

I started a fresh ASP.net 4 web application project and debugged then tried to register as a user
and I could. I haven't even added a backend database. Where are users stored in this instance or do I need to still add a database for this to work online?
0
Comment
Question by:Murray Brown
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:malikirfan28
ID: 35466035
Yes you will need some backend database before going online. When you simple register the user it actually does not persist and will remain in memory. There is also builten Membership providers which you can use for user registration. You can also use builten User Registration wizard control in ASP.Net.

Kindly see following link for more detail.
http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx
http://msdn.microsoft.com/en-us/library/ms178334.aspx
0
 
LVL 4

Expert Comment

by:Vishal Patel
ID: 35466040
its depending on provider which u use to save user. check your web.config membership tag its available there
0
 

Author Comment

by:Murray Brown
ID: 35466130
Thanks malikirfan28 but I still don't understand what a membership provider is. If I am going to add an SQL backend, do I need to add a table for this or is that already there in a fresh project?
0
 
LVL 4

Accepted Solution

by:
malikirfan28 earned 2000 total points
ID: 35466166
Kindly have a look at below post. It will have complete code with example for using Membership provider in ASP.Net and how you can create its database.

http://msdn.microsoft.com/en-us/library/ff649314.aspx
0
 

Author Closing Comment

by:Murray Brown
ID: 35466196
Thanks very much for the thorough answer. Really appreciate it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

834 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