cgm225 Posted November 16, 2007 Share Posted November 16, 2007 If a user is authenticated via htaccess or php session, is there a way to have the other authentication system know so a second login is not required? So, for example, if someone is logged into htaccess, then PHP would know and not request another login. Or, if one was logged into a php session, htaccess would be able to tell, and not require another login. Thank you all in advance! Quote Link to comment https://forums.phpfreaks.com/topic/77670-if-a-user-is-authenticated-via-htaccess-or-php-session/ Share on other sites More sharing options...
Daniel0 Posted November 16, 2007 Share Posted November 16, 2007 No, but you can make PHP do what you call .htaccess authentication. See: http://www.php.net/manual/en/features.http-auth.php Actually it isn't the .htaccess file that does the authentication, you just tell the webserver to send certain headers which the browser will respond to with an authentication dialog, but you can read about that in the link above (I think, but it does say how to do so with PHP nonetheless). Quote Link to comment https://forums.phpfreaks.com/topic/77670-if-a-user-is-authenticated-via-htaccess-or-php-session/#findComment-393210 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.