This topic is locked

sessions not working

10/31/2019 4:09:34 PM
PHPRunner General questions
A
aeaton2017 author

I am trying to get session variables to work and I can't get [Orgid] => USAFC21 to default.
I did a snippet with this print_r ($_SESSION);
this is my return
po_add.php [UserID] => Aaron Easton [UserName] => Aaron Lee Easton [GroupID] => -2 [AccessLevel] => User [UserData] => Array ( [ID] => 139 [username] => Aaron Easton [password] => xxxxxxx [email] => aaron.easton@xxxx [fullname] => Aaron Lee Easton [groupid] => -2 [active] => 1 [Region] => TX [Location] => [Postion] => Site Supervisor [LocationID] => 1,2,3,4,5,6,7,8,10,11,12,13,16,17,18,19,20,24,27 [SingleLocationID] => [Program] => 2 [PrPrefix] => CLS [PoPrefix] => CLS [Orgid] => USAFC21 )
After Successful Login
{

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

}
It returns zero!

Sergey Kornilov admin 10/31/2019

What exactly returns zero?

A
aeaton2017 author 11/18/2019



What exactly returns zero?


When I run this for $_SESSION["Orgid"] = $data["Orgid"]; it will only work one time when I go to the application PR application when I log in and then if a leave PR application and go to another application and come back to PR applications is blank? It's not consistent?