Mike521 Posted November 19, 2005 Share Posted November 19, 2005 hi all, is it possible to use htaccess password protection and send a user to a different file depending on their login credentials? so user A would go to admin/userA.php and userB would go to admin/userB.php? Or is it possible to send all users to a php script that simply registers their username in a global variable and then redirects them to "users.php" which then grabs their username and displays material accordingly? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/2898-htaccess-password-protection-for-multiple-users/ Share on other sites More sharing options...
Guest footballkid4 Posted November 23, 2005 Share Posted November 23, 2005 I believe PHP can pick up what was entered using: $PHP_AUTH_USERNAME Quote Link to comment https://forums.phpfreaks.com/topic/2898-htaccess-password-protection-for-multiple-users/#findComment-9815 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.