Problem with Login Control and Custom Membership provider

Discussion in 'ASP .Net' started by =?ISO-8859-1?Q?Carlos_Guzm=E1n_=C1lvarez?=, Jan 22, 2007.

  1. Hello:

    I have custom Membership and Role providers for an ASP.NET application,
    the problem comes when the Authentication gets done ( and i'm using the
    Login control, it finished properly ) but looks like the user is not
    really logged in ( Verified using the LoginView control )

    ¿¿ What could be the possible reasons for that problem ??

    Thanks in advance !!!

    P.S.: My web.config file for authenticaction and autorization looks like
    this:

    <!--
    The <authentication> section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.
    -->
    <authentication mode="Forms">
    <forms loginUrl="Renovacion.aspx"
    protection="All"
    timeout="30"
    name=".ASPXFORMSAUTH"
    path="/FormsAuth"
    requireSSL="false"
    slidingExpiration="true"
    defaultUrl="Acceso.aspx"
    cookieless="UseCookies"
    enableCrossAppRedirects="false"/>
    </authentication>

    <membership
    defaultProvider="MembershipProvider"
    userIsOnlineTimeWindow="15">
    <providers>
    <add
    connectionStringName="ConnectionString"
    applicationName="XXX"
    minRequiredPasswordLength="5"
    minRequiredNonalphanumericCharacters="0"
    enablePasswordRetrieval="true"
    passwordFormat="Clear"
    name="MembershipProvider"
    type="XXX.XXXMembershipProvider"
    />
    </providers>
    </membership>

    <roleManager
    enabled="true"
    cacheRolesInCookie="true"
    defaultProvider="RoleProvider"
    cookieName=".ASPXROLES"
    cookiePath="/"
    cookieTimeout="30"
    cookieRequireSSL="false"
    cookieSlidingExpiration="true"
    createPersistentCookie="false"
    cookieProtection="All">

    <providers>
    <clear />
    <add
    connectionStringName="ConnectionString"
    applicationName="CaixanovaRenovacion"
    writeExceptionsToEventLog="false"
    name="XXX"
    type="XXX.XXXRenovacionRoleProvider"
    />
    </providers>
    </roleManager>

    <authorization>
    <allow users="*"/>
    </authorization>
    =?ISO-8859-1?Q?Carlos_Guzm=E1n_=C1lvarez?=, Jan 22, 2007
    #1
    1. Advertising

  2. Hello:

    Got it working yet, thanks !!!
    =?ISO-8859-1?Q?Carlos_Guzm=E1n_=C1lvarez?=, Jan 22, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ad
    Replies:
    1
    Views:
    893
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jan 26, 2006
  2. sloan
    Replies:
    5
    Views:
    1,504
    sloan
    Jun 4, 2006
  3. Replies:
    0
    Views:
    737
  4. sloan
    Replies:
    1
    Views:
    504
    Chad Scharf
    Jul 3, 2007
  5. Brett Ossman

    Custom Membership Provider - Custom Error Messages

    Brett Ossman, Mar 11, 2009, in forum: ASP .Net Security
    Replies:
    0
    Views:
    787
    Brett Ossman
    Mar 11, 2009
Loading...

Share This Page