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

  • Home
  • SEARCH
  • 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 6867053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:15:39+00:00 2026-05-27T03:15:39+00:00

I have been doing some research about how to do custom profileprovider in .NET

  • 0

I have been doing some research about how to do custom profileprovider in .NET MVC.
It seems pretty complicated. Is there any other alternative?
And this is my major concern, why do ppl bother using customer profileprovider? If they want extra information about a user, why don’t they just make another table with OneToOne relationship with aspnet_Users with userId or userName as the foreign key?

Please clarify. I’m trying to implement user profile functionality, but I don’t wanna go down the wrong path.

Thanks
DG

  • 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-05-27T03:15:39+00:00Added an answer on May 27, 2026 at 3:15 am

    (I am not sure if this helps talk about custom profile providers.. unless I’m misunderstood…)


    IMO, what ever you do .. avoid (the baked in) ASP.NET Membership at any cost! It’s so over engineered, you’ll want to stab yourself in the eye with a blunt spoon 🙁

    Trust me, avoid it.

    Why: Should I use the built-in membership provider for an ASP .NET MVC application?

    So .. what can we do instead?

    It’s just so simple to roll your own Username/Password and leverage the built in Forms Authentication. For myself, I’m not a fan of storing -any- passwords in my own database .. so I prefer to use Facebook, Twitter or OAuth as my mechanism for authentication .. which then means I finish up with a simple, basic, custom user class.

    I also create my own custom IPrincipal and IIdentity because I want to store a bit more info in the cookie, which Forms Auth creates when a person has been authenticated. This then helps keep my code in my Controllers cleaner and way simpler.

    For example, I store the userId of the authenticated person in an encrypted cookie. (the default option is to only store a Name). I also store one or two more things .. but you get the idea. This way, I don’t always have the hit the DB to retrieve any user data OR store this crap in a session.

    With a roll your own, you can create extra meta data .. and have that extra profile data. Same table? extra table? Who cares … that’s a decision to make way later (and EASY to solve). Get your model right, IMO 🙂 Then once you’ve locked down your model, you now know what’s required and what’s optional .. and you can make some DB decisions then.

    Summary

    1. Avoid the built in ASP.NET Membership crap
    2. Roll your own .. and keep it simple.
    3. If you’re feeling advanced, also roll your own IPrincipal and IIdentity to really rock your world.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been doing some research on test driven development and find it pretty
I have been doing some research lately about best approaches to authenticating web services
I have been doing some research about this and have found a few similar
My team has a new Asp.net MVC intranet app. I have been doing some
We have been doing some research into physically isolating the secure and non-secure sections
I have been tasked with doing some planning and research for a home grown
I have been doing some research on ID3V2 tags and Video Formats such as
I have been doing some research on genetic algorithms for a project in my
I've been doing some research into finally automating our Development builds and still have
I've been doing some research on using RMI and in pretty much every case

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.