Link to home
Start Free TrialLog in
Avatar of VBBRett
VBBRett

asked on

ASP.net account login and account validation

I am creating a new website using the prebuilt ASP.net 4.5 template for the initial layout.  The project already has a login and register page.  But if I wanted to create another database and page from scratch, how could I go about user account login validation and make it secure and at the same time be able to have new users register from scratch?  Anybody have a clue and can you give me coding examples?
ASKER CERTIFIED SOLUTION
Avatar of Roopesh Reddy
Roopesh Reddy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@VBBRett,
So do you just want to move the login/Register page and still use same built-in membership provider or you want to have you own tables to store username/password and other user information?
Avatar of VBBRett
VBBRett

ASKER

I would like to see both guru_sami
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

Any Updates on this? Is your issue solved?
Avatar of VBBRett

ASKER

Hello roopeshreddy, I am taking a look right now at the answers and going through them right now.
Avatar of VBBRett

ASKER

Is it better to do Microsoft's asp.net wizard or is it better to code a solution from the ground up?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBBRett

ASKER

How would you create an account system similar to Facebook or other membership associated sites which make you login by email?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBBRett

ASKER

I am having a weird issue where the code is not executing the insert for the Registration Process into the database which I find to be rediculous.  Now keep in mind that the new membership database that comes with a asp.net 4.5 C# Web Application does not have any stored procedures; so how does the insert get generated?  Thanks!
Avatar of VBBRett

ASKER

OK, here is an update.  I am using a multi tiered setup for my membership.  I am using the membership tables that the asp.net 4.5 application gave me starting off, but I am using my own code to work with since the typical asp.net membership provider does not work with these tables.  So I have a custom profile table that I created that will store an image and information about that particular profile.  So, I have the following tables:

Applications
Memberships
Profiles - Will not use this table, too generic and not enough information to use this table
Roles
Users
UsersInRoles
UsersOpenAuthAccounts
UsersOpenAuthData
CustomProfiles

If you have Visual Studio 2012 and you start an ASP.net 4.5 web application, the following tables are given to you by default if you choose to use the OpenAuth options for memberships

Applications
Memberships
Profiles
Roles
Users
UsersInRoles
UsersOpenAuthAccounts
UsersOpenAuthData