PHP automatic login


I am using a website called Kipfolio to host my dashboards.

The problem I have with this is that they do not allow public access to their dashboards.

I was wondering if someone could assist me with building a php script which would automatically log in to the dashboard below -

Thanks in advanced.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
I can offer advice, but not assistance.  You stated right at the top that they do not allow what you're trying to do, so the overall answer from the EE community has to be "no."

First advice: Contact the publisher of the web site and ask for an API that allows automated access.  Since they are the publisher, they get to choose how/whether to permit this.  If they want you to have automated access they will furnish an API.

Second advice: If you still want to try to circumvent their controls, you may be able to use "screen scraper" automation.  You might write a GET-method request that isolates the login form and fills in the values, then POSTs the information to their action script.  For your convenience, this is the content of the form that you might fill in with appropriate values.

In my experience each of these screen-scraper scripts is a research project that takes a considerable amount of time and effort.  You may find that your script needs to act like a well-behaved web browser, returning cookies, following headers and redirection, etc.  If you choose to go this way, give yourself an ample budget of time!

<form id="form-login" method="post" >
<input type="email" style="width:250px" id="f-username"  name="username"  value=""/>
<input type="password" style="width:250px" id="f-password" name="password" value="" />
<input type="checkbox" name="rememberMe" id="rememberMe"  />
<input name="reqUrl" id="reqUrl" type="hidden" value="/dashboard"/>
<input id="login" type="submit" name="LOGIN" value="Sign In">

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.