Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET Custom Membership Provider for very large application
    primarykey
    data
    text
    <p>I have to come up with a membership solution for a very large website. The site will be built using ASP.NET MVC 2 and a MS SQL2008 database.</p> <p>The current Membership provider seems like a BIG overkill, there's way too much functionality.</p> <p>All I want to store is email/password and basic profile information such as First/LastName, Phone number. I will only ever need 2 roles, administrators &amp; users.</p> <p>What are your recommendations on this type of scenario, considering there might be millions of users registered? What does StackOverflow use?</p> <p>I've used the existing Membership API a lot in the past and have extended it to store additional information etc. But there's tables such as </p> <pre><code>aspnet_Applications aspnet_Paths aspnet_SchemaVersions aspnet_WebEvent_Events aspnet_PersonalizationAllUsers aspnet_PersonalizationPerUser </code></pre> <p>which are extremely redundant and I've never found use for. </p> <p><strong>Edit</strong><br /> Just to clarify a few other redundancies after @drachenstern's answer, there are also extra columns which I have no use for in the Membership/Users table, but which would add to the payload of each select/insert statements.</p> <ol> <li>MobilePIN</li> <li>PasswordQuestion/PasswordAnswer <em>(I'll do email based password recovery)</em></li> <li>IsApproved <em>(user will always be approved)</em></li> <li>Comment</li> <li>MobileAlias</li> <li>Username/LoweredUsername <em>(or Email/LoweredEmail)</em> [email IS the username so only need 1 of these]</li> </ol> <p>Furthermore, I've heard that GUID's aren't all that fast, and would prefer to have integers instead (like Facebook does) which would also be publicly exposed.</p> <p>How do I go about creating my own <strong><em>Membership Provider</em></strong>, re-using some of the Membership APIs <em>(validation, password encryption, login cookie, etc)</em> but only with tables that meet my requirements?</p> <p>Links to articles and existing implementations are most welcome, my Google searches have returned some very basic examples.</p> <p>Thanks in advance<br /> Marko</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload