Hi,
I have a folder on my server protected by Apache Basic Authentication, and a third party script in another folder that uses the same username and password for access.
I would like to be able to click on a link or button on a page in the protected folder and have the login information (from PHP_AUTH_USER and PHP_AUTH_PWD) from the protected folder passed to the login form of the third party script and submitted so the user can be automatically logged in to the thrid party script without having to complete the form or hit the submit button of the third party script.
Relevant information ...
Username from Apache protected folder = PHP_AUTH_USER
Password from Apache protected folder = PHP_AUTH_PWD
Form name on the third party script page = LoginForm
Username field name on the third party script page = login
Password field name on the third party script page = passwd
There are also two hidden fields in the form on the third party script page ...
name = cgi_ret value = /xyz
name = realm value = Joe
Does anyone have any ideas for submitting the user name and password from the Apache protection to the third party script and doing an automatic login?
Many thanks in advance for any suggestions!
Kirk