function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Madhuri KanthekarMadhuri Kanthekar 

How can we get logged out time of user as we only get LoginTime from LoginHistory Object ?

I am able to get Login time from Login History object but not the Logged Out time.
Let me know if anyone have done this before OR can suggest a work around to get Logged out time.
 
Avishek Nanda 14Avishek Nanda 14
Hi Madhuri,

Salesforce doesn't provide an option to track the log out time of the user. However Salesforce has one object which is called Auth Session can be accessible from Metadata API. So when user logs in to the salesforce its creates a active session and when logs out then the session is been removed. You can look for some work around something stamping the time and getting the detail. 

Let me know if this make sense. 

Regards,
Avishek