Files
cockpit/src
Marius Vollmer 3b4624ff0f bridge, shell: Robust session idle timeouts
Previously, only the Shell would participate in implementing session
idle timeouts.  This means that a session was not guaranteed to time
out when the browser decided to suspend JavaScript execution.

Now the main actor for session idle timeout is the bridge: When
JavaScript starts, it will instruct the bridge to start the session
idle timeout timer.  When it expires, the bridge will exit and end the
session even if JavaScript has been stopped.

While waiting for the timers to elapse, the bridge will send events
out over a new "session-control" channel type that inform the pages
when the final countdown has started, and when it is time to logout.

User activity is also reported over such a channel.
2026-04-24 15:30:02 +03:00
..