http authentication problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jorntk@yahoo.com

    http authentication problem

    if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AU TH_PW))) {

    header( 'WWW-Authenticate: Basic realm="Private" ' );
    header( 'HTTP/1.0 401 Unauthorized' );
    echo 'Authorization Required.';
    exit;

    } else {

    echo "You entered $PHP_AUTH_USER for a username.<BR>";
    echo "You entered $PHP_AUTH_PW for a password.<BR>";

    }

    why does the above keep on asking me for username and password
  • jorntk@yahoo.com

    #2
    Re: http authentication problem

    my global_variable setting is ON, i am using php 4.3.1 with apache 2
    server on xp pro.

    Comment

    Working...