Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8379481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:11:57+00:00 2026-06-09T16:11:57+00:00

Sorry for the big title. So I’ve been doing some research for making login

  • 0

Sorry for the big title.

So I’ve been doing some research for making login systems. I’ve already made my own, but discovered a more secure way to do it.
As far as I know, the four basic components of this login system are:

  • FormsAuthentication
  • MembershipProvider
  • RoleProvider
  • Principal

I have this as my basic user model:

public class User
{
    public int ID { get; set; }
    public string Name { get; set; }
    public string Password { get; set; }
    public string PictureUrl { get; set; }
    public string Role { get; set; }
    public string AccessToken { get; set; }
}

This is just for retaining the data from the database.

I still want to use this model with the components listed above.

Does anyone know a good and thorough tutorial that explains how to create a custom login system using the above components in MVC 3 Razor?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:11:58+00:00Added an answer on June 9, 2026 at 4:11 pm

    You can build a custom ‘login system’ by implementing a custom version of MembershipProvider and RoleProvider that uses your own database. Then you can re-use all the rest of the built in authentication and authorization stuff.

    MSDN has some details on how to build a MembershipProvider here and details on a custom RoleProvider here. Samples implementations are included.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sorry if this question has already been answered but I couldn't find it.
IMPORTANT EDIT: Sorry everyone, i made a big mistake in the structure. char *name;
Sorry for the confusing title. Basically I made a BinaryReader class that reads in
Sorry for misunderstanding title, but I couldn't explained my issue in a small title.
Sorry if already asked, but I can't find anything on this. I am moving
I am sorry for pasting a big chunk of code but i really want
First sorry if its a stupid guestion but im a really big beginner. I
Sorry for a big question, real question are bold in bottom, now some explanation.
Sorry for the weird title, but well, that's exactly what I need. I know
I'm sorry if this is too simple for some people, but I still don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.