mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-05-06 12:26:58 -04:00
3b4624ff0f
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.