This topic is locked
[SOLVED]

 Session Variables after Succesfull Login

7/20/2015 01:59:34
PHPRunner General questions
lefty author

I have the following after successfull login
$_SESSION["FirstName"] = $data["FirstName"];

$_SESSION["LastName"] = $data["LastName"];

$_SESSION["fldgroup"] = $data["fldgroup"];

$_SESSION["fldemail"] = $data["fldemail"];

$_SESSION["flddivision"] = $data["flddivision"];

$_SESSION["fldgroup"] = $data["fldgroup"];

$_SESSION["EmployeeID"] = $data["EmployeeID"];

$_SESSION["team"] = $data["team"];

$_SESSION["userid"] = $data["userid"];
All set as case sensitive / same as Employees table for login.
My fields that are FirstName , LastName , flddivision fill in correctly .

Fields fldgroup , fldemail , fldteam will not fill . All set up the same way default value on add page and readonly on the edit page .
I have them all setup as default value on add for example $_SESSION["fldemail"] , but just doesn't fill.

All coming from the employee table which is used for the dynamic login table. Worked on this for hours don't have a clue.

Sergey Kornilov admin 7/20/2015

Try to print one of those session variables on the page right after they are assigned. This way you can make sure your code is correct and is being executed.

lefty author 7/26/2015



Try to print one of those session variables on the page right after they are assigned. This way you can make sure your code is correct and is being executed.


Solved. In testing had to clean browser history as was logging in with different users which was giving mixed results. That solved issue. Thanks