Up to [LON-CAPA] / loncom / misc
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
rebuild_lastlogin.pl is run on a library server and gathers last login information for users in course(s) for which the current server is the home server. For each selected course a hash containing keys of: username:domain:section:role with values: UNIX timestamp of most recent role/section selection, i.e., "last log-in" will be stored in a nohist_crslastlogin.db file for the course. This script is intended to be run after installation of LON-CAPA 2.11.0 on a library server to populate nohist_crslastlogin.db files for the domain's courses. (Thereafter role selection after log-in on a server running 2.11.0 will update nohist_crslastlogin.db when a course role is selected.) This script might be run at other times. For example: (a) if course user sessions are being routinely hosted on pre-2.11.0 servers. (b) if nohist_crslastlogin.db is lost or corrupted, and needs to be rebuilt.