Welcome to WebmasterWorld Guest from 54.158.227.99

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)

Junior Member

10+ Year Member

joined:Jan 11, 2005
posts: 129
votes: 0


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.

Thanks,
Kirk

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

Administrator

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

joined:July 24, 2001
posts:15755
votes: 0


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 Sept 2, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 11, 2005
posts:129
votes: 0


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.

Kirk