Error and logout page in external captive portal
hello
I working on fortigate external captive portal and I using this tutorial
http://cookbook.fortinet.com/using-an-external-captive-portal-for-wifi-security/
my problem is when user inserted wrong username or password and tried again the second request not sent to the radius server until the user try to access any website for example facebook.com he will redirect again to login page and can insert username and password , and the request will be proceed .
in this link there is an example of external captive portal from fortinet company .but it has the same error (not sent the request to the radius server until user trying to access website and has new Magic id )
http://cookbook.fortinet.com/wp-content/uploads/FortiGate/wifi-ext-captive-portal/portal-php.txt
in that example there is some choice if the authentication success, fail , logout
but I don't know how can I using this pages to correct my wrong
