Jump to content

Archived

This topic is now archived and is closed to further replies.

Mike521

htaccess password protection for multiple users

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites
Guest footballkid4

I believe PHP can pick up what was entered using:

$PHP_AUTH_USERNAME

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.