LogonHistory API
When a user logs out, the system sets the Logout Type field for the LogonHistory object to explicit.
Logout time equals the time when the session is created minus the session start time plus the session timeout.
When a user times out, the system sets the Logout Type field to empty.