Re: [PHP] Authorization script
> I am making an authorizatoin script for the control panel of a loggin > system I have been writing. Here is what I have right now: Well, if you copied and paste'd this, then I'm surprised that you don't get a syntax error > if (!$authorized) { > header('Cache-Control: no-store, no-cache, must-revalidate'); > header('Cache-Control: post-check=0; pre-check=0', false); > header('Pragma: no-cache'); > header('WWW-Authenticate: Basic realm="phpLogK"'); > exit; ^^^ exit(); You also need some more headers... header('HTTP/1.0 401 Unauthorized'); header('status: 401 Unauthorized'); -=- me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Authorization script
> The problem is that if a user clicks cancel the control panel loads > instead of the program dying. Why and how do I stop it? Please provide more info -- like what do you mean by "if the user clicks cancel". -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Authorization script
I am making an authorizatoin script for the control panel of a loggin system I have been writing. Here is what I have right now: The problem is that if a user clicks cancel the control panel loads instead of the program dying. Why and how do I stop it? Thank you, -- Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php