Posted by:
SpiderSpartan
(---.lightspeed.tpkaks.sbcglobal.net)
I have WAMP setup on XP with Apache 2.2.11, PHP 5.3.0, and MySQL 5.1.36. I like the how easy it is to set up security for individual directories on the server and would like to keep that the way it is.
My question is, is there a way to send the Username and password to the server using php instead of using the standard apache login popup?
The first page visitors see when they visit my sight is not password protected. I would like to add a login form to this page so that when/if users try to go to a protected page the do not have to log in using the apache popup and I don't have to create a custom index.php for every directory on my server.
After loging in I can get the username using getenv("REMOTE_USER"
but if I try to set the username with putenv("REMOTE_USER=$myusername"
it doesn't seem to work. Maybe because I'm not sending a password with it?
Thanks for any help you can give with this.