This topic is locked

Auto Login

12/15/2009 10:16:50 PM
PHPRunner General questions
pplaut author

What is the url to pass the username and password so that an account can "auto login"
I believe this is probably already posted, but I can't find it :|
Thanks!

Peer

J
Jane 12/16/2009

Peer,
check username and password in the Login page: Before process event, fill PHPRnner session variables and redirect to the list page.

Here is a sample:

http://www.xlinesoft.com/phprunner/docs/implementing_single_sign_on.htm

pplaut author 12/28/2009



Peer,
check username and password in the Login page: Before process event, fill PHPRnner session variables and redirect to the list page.

Here is a sample:

http://www.xlinesoft.com/phprunner/docs/implementing_single_sign_on.htm


What I mean is:

trackerplus.net/usename=demopassword=password

this would log the user on with the demo account so they could test my app without having to register.

Thanks!

Peer

J
Jane 12/29/2009

Hi,
just check passed variables in the Login page: Before process event and redirect to the menu page:

global $dal;

if (@$_REQUEST["username"] && @$_REQUEST["password"])

{

//select record from database

$rstmp = $dal->UsersTablename->Query("Username='".$_REQUEST["username"]."' and Password='".$_REQUEST["password"]."'","");

if ($datatmp = db_fetch_array($rstmp))

{

$_SESSION["UserID"] = $_REQUEST["username"];

header("Location: menu.php");

exit();

}

}