Jump to content

If a user is authenticated via htaccess or php session..


cgm225

Recommended Posts

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!

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

Archived

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

×
×
  • Create New...

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.