Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Misc

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.



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