LoginControl not working correctly with Firefox, requires double login attempt.

Posted by CmdrTallen on Stack Overflow See other posts from Stack Overflow or by CmdrTallen
Published on 2009-03-15T16:31:42Z Indexed on 2010/04/19 5:03 UTC
Read the original article Hit count: 255

Filed under:

Any idea why LoginControl requires users authenticate twice with FireFox but works correctly (once) with IE? I am using a custom MembershipProvider and RoleProvider, if that matters.

Authentication portion of my web.config;

<authentication mode="Forms">
      <forms
          timeout="50000000"
          protection="All"
          requireSSL="false"
          slidingExpiration="true"
          cookieless="AutoDetect"
          domain=""
          enableCrossAppRedirects="true">
        <credentials passwordFormat="SHA1" />
     </forms>        
</authentication>

Membership section;

	<membership defaultProvider="CustomMembershipProvider">
		<providers>
			<add 
    name="CustomMembershipProvider" 
    type="CustomCrateMembershipProvider" 
    connectionString="" 
    enablePasswordRetrieval="false" 
    enablePasswordReset="true" 
    requiresQuestionAndAnswer="true" 
    applicationName="/" 
    requiresUniqueEmail="true" 
    passwordFormat="Hashed" 
    maxInvalidPasswordAttempts="5" 
    minRequiredPasswordLength="5" 
    minRequiredNonalphanumericCharacters="1" 
    passwordAttemptWindow="10" 
    passwordStrengthRegularExpression=""/>
		</providers>
	</membership>
	<roleManager defaultProvider="CustomRoleProvider" enabled="true">
		<providers>
			<add name="CustomRoleProvider" type="CustomRoleProvider"/>
		</providers>
	</roleManager>

Only code behind related to login;

protected void OnLoggedIn(object sender, EventArgs e)
{
}

protected void OnLoggingOut(object sender, EventArgs e)
{
}

© Stack Overflow or respective owner

Related posts about asp.net-membership