Skip to content
Bug Barometer

Session Timeouts Do Not Trigger LogoutEventStream

Salesforce says this works as designed.

Summary

LogoutEventStream logs an event in 2 scenarios if "Force logout on session timeout" session setting is enabled:

1. The user logs out from the UI manually.
2. The user is logged out automatically when their session times out.

Triggers created on LogoutEventStream however will only fire when a manual UI logout occurs, not if a session timeout logout occurs. According to the article below, the trigger should fire if that setting is enabled and the browser window remains open.

"Timeouts don't cause a LogoutEventStream object to be published. An exception is when a user is automatically logged out of the org after their session times out because the org has the Force logout on session timeout setting enabled. In this case, a logout event is recorded. However, if users close their browser during a session, regardless of whether the Force logout on session timeout setting is enabled, a logout event isn't recorded."

This happens because currently no LogoutEventStream is created/logged when a session timeout occurs.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Working as Expected with 43 reports

    Nov 30, 2026

Also open in Identity & Authentication