|
Often you need to save data from the login table in session
variables for later use. For this purpose you can use AfterSuccessfulLogin
event.
Note: Change
the values listed in red to
match your specific needs.
|
function AfterSuccessfulLogin($username, $password, $data)
{
$_SESSION["FirstName"] = $data["FirstName"];
}
|
Then you can use $_SESSION["FirstName"]
as default value of any field or in other events.
|