I need a little help with php_auth I have used HTTP authentication with Php and it seems to working fine (when you go to the url it asks for username and password and is working fine) but what i need to do is pass the username and password for the authentication from another page and authenticate automatically. Something like set variable _SERVER[“PHP_AUTH_USER”] using php from another page.
Edit: I forgot to mention that My problem is that two pages are completely different application and
both maintain separate sessions. Application “A” and Application “B”
may or may not be hosted on the same domain.
I used a zend function setAuth(username, password); to get the work done.
How the setAuth function works is it embeds/encodes the authentication params as header to the url