Forum Moderators: phranque

Message Too Old, No Replies

I need an autologin url/form for HTACCESS authenticated page

         

uktimber

9:50 am on Oct 7, 2011 (gmt 0)

10+ Year Member



Hi all,

Okay, we have a staff portal which provides easy access for our staff members to the admin panels of the many ecommerce stores we run, on numerous domains. Our staff members simply click on the icon of the store they want to administer, and they are automagically logged into the relevant admin panel.

Up until this point our ecommerce stores have all used custom PHP based authentication, but the latest version of our ecommerce platform uses either our existing PHP based authentication, or optionally HTTP authentication.

And so my question is this........is it possible to create a link, or form, which our staff members can click in order to automatically login as they have done previously, rather than them having to fill out the HTTP authentication popup box?

Cheers,
Paul

lostdreamer

2:16 pm on Oct 7, 2011 (gmt 0)

10+ Year Member



Perhaps....But it aint pretty.

First have PHP do a curl request and log in on the website (using a cookie to save the info)

After that, you write all the info in this cookie, to a cookie on the user's pc.

Now, forward the user to the website.


If you're lucky you just helped them hijack their own session...