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.
__________________
If you won't feel as good, I won't feel as cheap.
|