i have a secure login using .htaccess, and i need to know which user accessed the area so that my php index can show him his invoices, but the problem is that how to capture the user name when promoted in .htaccess
+1
A:
You mean HTTP authentication (I think). Apache will add new keys to the $_SERVER
variable, named PHP_AUTH_USER
, PHP_AUTH_PW
, and AUTH_TYPE
Michael Mrozek
2010-05-07 00:41:43