Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Can PHP Automatic Log Me In To Another Site On The Same Server?

I want to use session variables to log in to another script



8:52 pm on Aug 28, 2008 (gmt 0)

10+ Year Member

I have a website with a folder protected by Apache Basic Authentication.

On the same server/IP, I have another protected folder which is protected by a Perl script and uses a normal web form with text boxes anmed "login" and "passwd."

Can someone assist me in developing a short PHP snippet that will allow me to click on a link in my first folder and use the PHP_AUTH_USER and the PHP_AUTH_PWD session variables to log in to the second folder with the Perl script?

Any help would be appreciated.



1:35 pm on Sep 2, 2008 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

have you got any code so far?

if you control the other script you could also write in a bypass for this


2:23 pm on Sep 2, 2008 (gmt 0)

10+ Year Member

Thanks Jatar,

Yes, I was able to find a guy to code the action for me.

I do not have code access to the second script, but he was able to fill and submit (execute) the form.

Sorry, I forgot my post here when there were no responses.



Featured Threads

Hot Threads This Week

Hot Threads This Month