This topic is locked

Default Value Session

1/31/2019 12:58:53 PM
PHPRunner General questions
lefty author

Phprunner 9.8 Build 31882 x64
I have a project 1 with After successful login Event :
$_SESSION["FirstName"] = $data["FirstName"];

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

$_SESSION["UserName"] = $data["FirstName"].' '.$data["LastName"]
I have a table with Employee Field

I have Employee Field as Readonly and default value is
$_SESSION["FirstName"] . " " . $_SESSION["LastName"]
This does not show in Add page with the above as default or save the record with the Employee field ( blank ) . I have another project 2 same build and the above works fine.
As a workaround I changed newer project to use $_SESSION["UserName"] name works fine, but I am puzzled as to why this does not work in Project 1 as they areidentical projects . Just 1 is live and the other is a demo . Same Server different domain vps.
Any Ideas out there for future reference?

admin 2/1/2019

There is a built-in PHPRunner session variable named $_SESSION["UserName"], maybe it gets in the way?