Forum Moderators: coopster
I currently have a password protected page that users have to login to view. The authentication method is done in Apache with a password file. So this means the server asked for a username and password and not an actual webpage.
I was curious if there is a way in PHP that I can find out what the username was that the user logged in with.
Does anyone know how to do this?
Thanks!
Wes
$_SERVER['PHP_AUTH_USER']
$_SERVER['PHP_AUTH_PW']