Jump to content

Apache, PHP, and Single Sign On Help


Janus13

Recommended Posts

I'm really stumped here. I have a directory on my web server secured via .htaccess pointing to a crypt file outside the web root. Nothing special there right? In the root of my site I have a logon.php page that validates against a mySQL database (host doesn't support mod_auth_mysql). Once I have validated the user I want to pass them to the secured directory, which it's doing, but it's prompting a second time for user id and password. I want to supress the prompt that comes up now due to .htaccess requiring a valid user. I've tried setting the $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] variables in the authentication routine, but that doesn't seem to do the trick. I'm not to up on mod_rewrite so I haven't been able to figure out if I need to employ that or if there is another way to accomplish this. Any ideas? Any help anyone can give me would be awesome!

 

Jon

Link to comment
https://forums.phpfreaks.com/topic/2849-apache-php-and-single-sign-on-help/
Share on other sites

  • 2 weeks later...

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.