Quote:
Originally Posted by mlove
In php, your authenticated username/pass are stored in the following variables:
$_SERVER["PHP_AUTH_USER"]
$_SERVER["PHP_AUTH_PW"]
You should be able to do something like
<?php
$user = $_SERVER["PHP_AUTH_USER"];
$pass = $_SERVER["PHP_AUTH_PW"];
echo "Username: $user<br />Password: $pass";
?>
I'm not completely sure if those are carried through the entire session. I'm pretty sure they will be though.
|
i think that should work. if you're using htaccess authentication, you can use what mlove posted. the username and password should pass between pages on same server. correct me if i'm wrong
