Show/Hide Toolbars

PHPRunner 9.8 Manual

Navigation: Advanced topics > Events > Global events > Login page

PHPrunner32x32     PHPRunner manual

Event: AfterSuccessfulLogin

Scroll Prev Next More



Function AfterSuccessfulLogin is executed on the login page after username and password successfully verified.




$username - user-entered login name.

$password - user-entered password.

$data - array with existing user record in the login table. Access fields by $data["FieldName"].

Field names are case-sensitive. If the field name is PlayerId, you should use $data["PlayerId"]. Note that $data["playerid"] or $data["PlayerID"] will not work.

Applies to pages


Recommended  sample events

Add link to user profile to the menu

Change 'Logged on as' message

Redirect to user info edit page

Save user data in session variables