0 Replies Latest reply on Dec 3, 2008 11:02 AM by (Peter_T2)

    info=DENIED / outside login works the 2nd time but NOT first

      I've got a strange problem. I'm using the Restrict Access to page feature on a few pages. Also, I'm logging in using an outside LDAP login. My problem is that the first time never works. And in the url, say my url is http://mydomain.com/login.php...when I hit the submit button the first time, the url changes to this http://mydomain.com/login.php?info=DENIED.

      The second time it logs in perfectly!

      Any idea how or why this is happening?

      My login form code is below. This only happens when I use the Restrict Access to Page feature. If I remove it from the success page, it logs in fine.

      I've searched posts here but still am unsure of how to fix this. Though some posts were close. Do you think I need to change code on either of these pages?


      FORM CODE:

      <form action="http://mydomain.com/test_peter/pass_login.php" method="post" name="form1" class="KT_tngformerror" id="form1">

      <table align="center" border="0" class="KT_tngtable">



      <td class="KT_th"><label for="username">Username:</label></td>

      <td><input type="text" name="kt_login_user" id="kt_login_user" value="" size="32" /></td>



      <td class="KT_th"><label for="password">Password:</label></td>

      <td><input type="password" name="kt_login_password" id="kt_login_password" value="" size="32" /></td>


      <tr class="KT_buttons">

      <td colspan="2"><input type="submit" name="kt_login1" id="kt_login1" value="Login" />