[SOLVED] - Setting $_SERVER['PHP_AUTH_USER']
Posted: Thu Aug 05, 2004 12:22 pm
Hi
I have :
a.php:
I get user and pass and check for validity from db and if correct set $_SERVER['PHP_AUTH_USER']=$_POST['User']; and then header("Location:b.php")
b.php:
echo $_SERVER['PHP_AUTH_USER']; - it gave PHP_AUTH_USER is undefined.
When I printed the content of $_SERVER in b.php, it shows
AUTH_PASSWORD -
AUTH_TYPE -
AUTH_USER -
Any ideas, suggestions ?
Thanks
I have :
a.php:
I get user and pass and check for validity from db and if correct set $_SERVER['PHP_AUTH_USER']=$_POST['User']; and then header("Location:b.php")
b.php:
echo $_SERVER['PHP_AUTH_USER']; - it gave PHP_AUTH_USER is undefined.
When I printed the content of $_SERVER in b.php, it shows
AUTH_PASSWORD -
AUTH_TYPE -
AUTH_USER -
Any ideas, suggestions ?
Thanks