htaccess security logins

Status
Not open for further replies.

LotsOfZeros

^^^ Bi-Winning ^^^
Feb 9, 2008
4,648
118
0
www.makemoniesonline.com
I know the debate has raged on before about what's better, htaccess security or using php security but my inquiry is more on the side of htaccess since for me, is much easier to implement.

My problem is how do I use htaccess security for individual users without having to set up multiple directories (one for each login) when each user will see their own data and none others?

Does the username from the htaccess login pass as a global varible that I can pick up through php? I was hoping to be able to have each user log in to the same directory (mysite.com/members) and then the index.php would be able to pick up the username from the login and display their own data from a mysql db.
 


Thanks for that resource, from reading through it, what I want to do looks only possible in php since I want to limit the types of information seen by each unique user while still allowing all users access to the same physical directory.
 
Status
Not open for further replies.