Where is lastaccess updated?

Where is lastaccess updated?

by Richard Crawford -
Number of replies: 0
I'm trying to find where in the code the value of lastaccess in a table is set (e.g., mdl_user_teacher.lastaccess or mdl_user_student.lastaccess).  I'm using Moodle 1.5.2.  Can anyone help out?
Average of ratings: -