lastaccess and lastlogin in mdl_users

Re: lastaccess and lastlogin in mdl_users

stefan weber -
Atsakymų skaičius: 2
Plugin developers paveikslėlis

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 besišypsantis

Atsakymas į stefan weber

Re: lastaccess and lastlogin in mdl_users

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.