chronister Posted October 2, 2008 Share Posted October 2, 2008 I hate to double post here as it is in the apache thread, but it is php as well Is it possible to determine with PHP what .htaccess username has been used? I currently have .htacess authentication going on one of my sites and would like to figure out how to read which user has logged in and show appropriate links and such. I have looked and cannot determine how the .htaccess file creates a session login. I have searched the web, and have used print_r($_COOKIE); to see if it would be there. It was not. Anyone have any idea on this? Thanks for the help. Nate Link to comment https://forums.phpfreaks.com/topic/126750-solved-read-htaccess-with-php/ Share on other sites More sharing options...
discomatt Posted October 2, 2008 Share Posted October 2, 2008 I'm not too familiar with the methods Apache uses for htaccess-based authentication, but this might help http://php.net/manual/en/features.http-auth.php Link to comment https://forums.phpfreaks.com/topic/126750-solved-read-htaccess-with-php/#findComment-655591 Share on other sites More sharing options...
chronister Posted October 2, 2008 Author Share Posted October 2, 2008 Beautiful..... thanks discomatt... I looked through the manual and did not see this. That is exactly what I wanted to know. I appreciate it. Nate Link to comment https://forums.phpfreaks.com/topic/126750-solved-read-htaccess-with-php/#findComment-655595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.