> 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

Reply via email to