Last login is on the System.User entity.
You might want to look at the user statistics module and add a logout time to the Account entity (which inherits from System.User).
hi, I tried using System.User entity but attributes of that cannot be accessed, and User Statistics module isn't compatible for the modeler version(5.14.1)
We are looking into this as well and it seems that using Java and a scheduled event you can find and store the logged in users. The delta between the previous run determines who has logged in and logged out. Have a look at the API: com.mendix.systemwideinterfaces.core.ISession and getActiveSession().
Or have a look at the Login Audit Trail (https://appstore.home.mendix.com/link/app/1183/Mendix/Login-Audit-Trail) module, that might be sufficient too. It depends on the application log.