Asp.net user role management: where to start

I am new to user role management. I read my Wrox programming book on asp.net 3.5 user role management ... but it was hard to follow since I don't have a local server set up for testing (I ... but ... thats a separate issue), but currently tested on a remote server (where the website is hosted, theres not enough hits where I can get away with testing on a real server).

Any ways ... Where can I start by managing the user role. I do not have to ask for a 30 pg hard description, but a larger summary. My GoDaddy hosting account seems to be offering an asp.net database for the SQL database, configured to manage the user role, but I still have to learn how to integrate it into my development.

Any input would be appreciated.

+5
source share
5 answers

I would open Visual Studio, create a new ASP.NET web application project and click the "Configure ASP.NET" button in the upper right corner of Solution Explorer. If you go to the Security section, you can start creating Users and Roles. The tool basically describes how they work with you.

+8
source

SqlRoleProviders SqlMembershipProviders .NET, .

http://www.odetocode.com/Articles/427.aspx

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

asp.net.

  <authentication mode="Forms">
    <forms name=".ASPXFORMSAUTH" loginUrl="~/Common/Login.aspx" timeout="450" />
  </authentication>
  <authorization>
    <deny users="?" />
    <allow roles="Admin" />
  </authorization>

web.config. , outpack aspnetdb.

<membership defaultProvider="IDTSqlMembershipProvider" userIsOnlineTimeWindow="15">
        <providers>
          <clear />
          <add
            name="IDTSqlMembershipProvider"
            type="System.Web.Security.SqlMembershipProvider"
            connectionStringName="SqlMembershipConnectionString"
            applicationName="ConsumerSynergy"
            enablePasswordRetrieval="false"
            enablePasswordReset="true"
            requiresQuestionAndAnswer="false"
            requiresUniqueEmail="true"
            passwordFormat="Hashed"
            maxInvalidPasswordAttempts="20"
            minRequiredPasswordLength="6"
            minRequiredNonalphanumericCharacters="0" />
        </providers>
      </membership>

      <roleManager enabled="true" defaultProvider="IDTSqlRoleProvider" cacheRolesInCookie="true" cookieProtection="All">
        <providers>
          <clear/>
          <add
            name="IDTSqlRoleProvider"
            type="System.Web.Security.SqlRoleProvider"
            connectionStringName="SqlMembershipConnectionString"
            applicationName="ConsumerSynergy"/>
        </providers>
      </roleManager>
0

This link is very useful if you are new:
 Understanding ASP.NET Roles and Membership - Beginner's Tutorial

Good luck.

0
source

All Articles