Hello 
I've read http://help.directadmin.com/item.php?id=61 and created an external login form.
And everything works fine, except this scenario:
1. Go to http://www.yourdomain.com/yourloginform.html
2. Login with existing credentials
3. Ok, you're logged in
4. Logout - You will be redirected to LOGOUT_URL, so everything is still fine.
5. Again, login with existing credentials.
6. Ok, you're logged in
7. Now do not logout in DA, just go back to http://www.yourdomain.com/yourloginform.html
and try to login with NONEXISTING credentials (for example with a wrong password)
You will see DirectAdmins loginform, redirect to FAIL_URL will not occur.
Expected behaviur: redirect to FAIL_URL.
So, the problem occurs, when the user is logged in and tries to log in again with wrong credentials.
Am I doing something wrong, or are You able to reproduce this behaviour?
TIA.

I've read http://help.directadmin.com/item.php?id=61 and created an external login form.
HTML:
<form action="http://www.yourdomain.com:2222/CMD_LOGIN" method="POST" name="form">
<input type=hidden name=referer value="/">
<input type=hidden name=FAIL_URL value="http://www.yourdomain.com/login_failed.html">
<input type=hidden name=LOGOUT_URL value="http://www.yourdomain.com/logged_out.html">
Username: <input type=text name=username>
Password:<input type=password name=password>
<input type=submit value='Login'>
</form>
And everything works fine, except this scenario:
1. Go to http://www.yourdomain.com/yourloginform.html
2. Login with existing credentials
3. Ok, you're logged in
4. Logout - You will be redirected to LOGOUT_URL, so everything is still fine.
5. Again, login with existing credentials.
6. Ok, you're logged in
7. Now do not logout in DA, just go back to http://www.yourdomain.com/yourloginform.html
and try to login with NONEXISTING credentials (for example with a wrong password)
You will see DirectAdmins loginform, redirect to FAIL_URL will not occur.
Expected behaviur: redirect to FAIL_URL.
So, the problem occurs, when the user is logged in and tries to log in again with wrong credentials.
Am I doing something wrong, or are You able to reproduce this behaviour?
TIA.