Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Misc

PHPrunner32x32     PHPRunner manual


Save user data in session variables

Scroll Prev Next More

 

Often you need to save data from the login table in session variables for later use. For this purpose, you can use the AfterSuccessfulLogin event.

 

Note: Change red values to match your project.

 

function AfterSuccessfulLogin($username, $password, $data)
{
$_SESSION["FirstName"] = $data["FirstName"];
}

 

Then you can use $_SESSION["FirstName"]as the default value of any field or in other events.

See also:

Session keys

PHPRunner session variables

Session table variables in the WHERE clauses

Speed up data entry using events

Limit number of records users can add

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software