View Single Post
Old 02-05-2007, 05:01 AM  
AMP-E
Registered User
 
Join Date: Jan 2007
Posts: 6
Quote:
Originally Posted by mlove View Post
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
__________________


EARN UP TO 70% - RECURRING
AMP-E is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook