In the CMS_User
table there are a few fields which track this information BUT it is updated immediately when the user logs in. If you wanted to keep a log of users actions (log in, out, etc), you could do the following:
- create a custom module with a custom class to store the event logs. The custom class (database table) would have the following fields,
EventLogID, EventLogUserID, EventLogCreatedDate, EventLogEventName, EventLogEventDescription, EventLogIP, EventUserAgent, EventUrlReferrer
.
- create global handlers for the user's authentication events
- during those authentication events, create records and insert them into your new custom module table.
- create a custom webpart to capture the current logged in user and display their login history