We are writing a custom ending session code for our Site.come community. What we want to do is to query trough Apex the datetime of the last activity of the user logged in.
There is in Salesforce an object that stores information like UserId, datetime of activity (API calls, UI interactions ecc...)?
Our idea is to call the last activity datetime and if it's out of a certain limit (eg. now plus ten minutes) use logout.jsp to force the log out of the user.