Contents

 
Home
PHPRunner 9.6 manual
Prev Page Next Page
 
 

Event: AfterSuccessfulLogin

 

Description

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

Syntax

AfterSuccessfulLogin($username,$password,$data)

Arguments

$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

Login

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

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)