Hallo all,
recently I came across password protecting web pages using .htaccess feature of Apache. I'd like to ask those of you who have some experience with this feature if there is some way to obtain the username typed by user and use it in PHP script (eg. index.php which is automatically displayed after succesfull login through the .htaccess Apache feature). I need this to be able to find out the username of the user who logged to the pages. I know there are other ways to password protect web pages, but I'd like to use this one.
So in general I'd like to know, if the username typed into the authorization dialog of .htaccess is somehow accessible in PHP script (eg. through some variable).
Thanx for all replies, Peter
recently I came across password protecting web pages using .htaccess feature of Apache. I'd like to ask those of you who have some experience with this feature if there is some way to obtain the username typed by user and use it in PHP script (eg. index.php which is automatically displayed after succesfull login through the .htaccess Apache feature). I need this to be able to find out the username of the user who logged to the pages. I know there are other ways to password protect web pages, but I'd like to use this one.
So in general I'd like to know, if the username typed into the authorization dialog of .htaccess is somehow accessible in PHP script (eg. through some variable).
Thanx for all replies, Peter