PHP automatic login

Posted on 2013-09-16
Medium Priority
Last Modified: 2013-09-26

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.
Question by:dan_stan
1 Comment
LVL 111

Accepted Solution

Ray Paseur earned 2000 total points
ID: 39495979
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


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question