PHPMaker handles very good the important user profile information, such as: the last accessed date time, the login retry count, the last bad login date time, and the last password changed date, by saving them only in one field that generally called with UserProfile. For your information, you can use this UserProfile if you have activated the related field from the “Profile field (memo)” directive in your PHPMaker application -> Security -> Advanced Security -> User Login Options. By using this UserProfile field, you are able to retrieve those information above easily and quickly only from one field.
Unfortunately, PHPMaker has not included the other three important user profile information, yet; such as the last login date time, the last logout date time, and the registered date. I am sure you will also need this information so you will know when your users are registered, when your users the last time are logged in, and when your users are logged out in your website. This following modification will add this additional information by optimizing the existing UserProfile field. Imagine now, you are able to save any important user profile information into this UserProfile field only!
I am getting this error:
Undefined property: clogout::$Username in /Applications/MAMP/htdocs/gms.drc.dk/app/logout.php on line 205
changing $UserProfile->SaveProfileToDatabase($this->Username);
to
$UserProfile->SaveProfileToDatabase($sUsername);
seems to fix the problem. Can you please check?
I get also this error on registration:
Undefined property: cuser::$Username in /Applications/MAMP/htdocs/gms.drc.dk/app/register.php on line 792
$UserProfile->SaveProfileToDatabase($employees->Username->CurrentValue);
this seems problematic, also the name of my table is “user” not employees …
Thanks. Already fixed it with the following code:
Thanks for bringing this issue up. Already fixed it with the following code: