This topic is locked
[SOLVED]

 How do you combine 2 php projects

6/5/2009 1:05:09 PM
PHPRunner General questions
K
KennyB author

I have 2 php runner projects. Both have a login page. They use the same userid file.
I inserted a hyperlink in project1 on the list page of a table.
I log into project 1

click on hyperlink and go to project2

I do not get login page (which is good)

I can see my userid saying logged in as XXXXX
I can add records to a table but it does not store the userid.

If when in project2 and I log out I can log in as XXXXX and then add records and my userid of XXXXX gets stored.
Seems like something is missing on project2
Here is before process in project2
//** Custom code ****

// put your custom code here

//print $GLOBALS['UserID'];

//print $_SESSION["UserID"];

if ($_SESSION["UserID"])

{

//$_SESSION["UserID"] = ($GLOBALS['UserID']);

$_SESSION["AccessLevel"] = ACCESS_LEVEL_USER;

header("Location: Practice_list.php");
exit();

}
any ideas?

J
Jane 6/8/2009

Hi,
please make sure you have filled all required session variables.

Check list with PHPRunner session variables in the PHPRunner Help --> Advanced topics --> Programming tips --> PHPRunner session variables:

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

K
KennyB author 6/9/2009

anyone out here do this and have an example? how do I know what to set them all to? any way to look and see the code on login page then I can copy and paste into area?