Successful login
I would like to keep track of when a user logged in last.
How can I log to the pcms2_users table the last successful login date time?
I would like to keep track of when a user logged in last.
How can I log to the pcms2_users table the last successful login date time?
you would need to leave the success redirect in the authenticate user behavior blank, then add an Update record behavior to update the users table and add the current date.
The login saves the users ID in a session variable, use that session as the Primary Key value in the update behavior, and use the following code for the loginDate column binding:
<?php echo(date("Y-m-d h:i:s")); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.