Stretchwickster
Programmer
I have a site which is password-protected via Basic HTTP Authentication. I would like to add a menu option in my Windows desktop application which automatically logs in so that the user is not prompted for login credentials if using this route.
I therefore wondered if it's possible to send username and password using the header function in a PHP script? I know it is possible to build the username and password into the URL but IE closed this route for security reasons.
Any advice would be much appreciated.
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
I therefore wondered if it's possible to send username and password using the header function in a PHP script? I know it is possible to build the username and password into the URL but IE closed this route for security reasons.
Any advice would be much appreciated.
Clive

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096