PHP & .htaccess
Posted 24 October 2006 - 01:05 AM
I'm trying to figure out if it's possible to get PHP and Apache .htaccess to work together to achieve a single sign on. I have a directory security program I have written to protect directories on apache servers so it's more flexible than just having to manually create password files and us .htaccess. At the moment I have to have it display two different login boxes. The first one is a php page that has a login form, then compares the form information to a mysql database for authentication. If successful then it sends the user to the protected directory, and if that directory has a .htaccess file and rule setup for a password file it prompts again for user credentials. What I want to do is figure out a way to pass the php login information to Apache so it will accept that as login credentials and not prompt the second time. Is this possible?
Thanks for any help! I can't imagine I'm the first to want to do this, so hopefully someone has some ideas.
Posted 24 October 2006 - 08:12 AM
I'll test it.
Note: That didn't work
Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools
Posted 28 October 2006 - 02:14 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users