Detecting inactive users

Hello,
in my understanding if a user leaves a tab with a panel app open, even if they are never interacting with it again, the session will not expire because the ws connection is kept active by the browser. Is that correct?
If this is the case, is there any way to detect such situations and close the session?
I could imagine that a possibility is monitoring the active status of the tab and/or the last user interaction with the page via js and close the session if no activity is registered for a certain time.
But I was wondering if there is already a solution provided by panel, before reinventing the wheel.

No I think it’ll expire due to serve — Bokeh 3.9.1 Documentation

You can block expiration though Re-connecting to a Session — Panel v1.9.3