Link to home
Start Free TrialLog in
Avatar of trwd
trwdFlag for United States of America

asked on

Forms Authentication Requests Are Not Directed to login Url Page

Alright experts, I dont know why this is not working. Its 10 after 1am and I need some help. I am implementing forms authentication. I have specified the loginURL, authentication cookie name and path. I however cannot get my pages protected. Somehow the redirection to the login page would not work. I just dont know help me figure this out.

The web.config entry is below
  <add name="AspNetSqlMembershipProvider"
               type="System.Web.Security.SqlMembershipProvider"
               connectionStringName="connstring"
               enablePasswordRetrieval="false"
               enablePasswordReset="true"
               requiresQuestionAndAnswer="false"
               applicationName="/"
               requiresUniqueEmail="false"
               passwordFormat="Hashed"
               maxInvalidPasswordAttempts="5"
               minRequiredPasswordLength="1"
               minRequiredNonalphanumericCharacters="0"
               passwordAttemptWindow="10"
               passwordStrengthRegularExpression="" />
      </providers>
    </membership>
    <authentication mode="Forms">
      <forms name=".VENDORAUTH" loginUrl="Login.aspx" path="/"  timeout="30"  protection="All"  >
       
      </forms>
    </authentication>
    <authorization>
      <allow users="?"/>
    </authorization>
ASKER CERTIFIED SOLUTION
Avatar of avnish_tanna
avnish_tanna
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
trwd - were you able to resolve it using above change?