How do I access the username if someone logged in with .htaccess can i just use $_SERVER['PHP_AUTH_USER']??
.htaccess user auth
There is tutorial about this in this web site if you look, but anyway so far i know when user insert his username and password in a form, it post so you can use $_POST for checking the user or may be passing the variables in sessions so you can use it later.
Originally posted by foe
How do I access the username if someone logged in with .htaccess can i just use $_SERVER['PHP_AUTH_USER']??
well, yeah. You can.
If you knew that that existed, why not just try it.
http://www.php.net/manual/tw/reserved.variables.php#reserved.variables.server
- keith