lastaccess and lastlogin in mdl_users

Re: lastaccess and lastlogin in mdl_users

by stefan weber -
Number of replies: 2
Picture of Plugin developers

forgot to specify: these are LDAP users

if the profile being created counts as an activity, then that explains it - our users are automatically created and enrolled into a course by an interface with our database system - so maybe these are users that were created/enrolled, but never actually logged into moodle?

i guess that makes the most sense, thanks for getting me on the right track smile

In reply to stefan weber

Re: lastaccess and lastlogin in mdl_users

by Bruno Andrade Ono -
I know this is a little late, but you should see this post : https://moodle.org/mod/forum/discuss.php?d=148115

lastaccess: any action inside the discipline course
currentlogin: timestamp for the current login
lastlogin: timestamp for the last login

The currentlogin and lastlogin starts with a 0 (zero) value, after the firstlogin, currentlogin will be populated, but the lastlogin will be at 0. The second time the user login at moodle, currentlogin -> lastlogin and currentlogin will be another value. I hope this could help.
Average of ratings: Useful (4)
In reply to Bruno Andrade Ono

Re: lastaccess and lastlogin in mdl_users

by stefan weber -
Picture of Plugin developers

better late than never, thanks for the info smile