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.
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.