@clarkwinkelmann I too am interested in how this is is handled in other standard SPAs, one idea is in the session
middleware. If any client presents an invalid session token, maybe some event/soft "session expired" exception is fired to the frontend (or as you described, a more authentic Logged Out exception would work as well). This would indicate the client stops trying to make requests with incorrect info, deletes the session etc
tankerkiller125 Most modern sites will accurately reflect your logged-in state after a new request, though. Instead, flarum shows you are still logged in, and incorrectly assumes that user will permanently remain that way.
I don't think this proposal is too ridiculous, this isn't "force logging out a tab" - your session is forcefully expired regardless. This is simply detecting an expired session when a new request is made, and the frontend updating itself to reflect the changed state. Flarum all-too-often tries to avoid state in every scenario, and this is an artifact of that practice. I believe there are extensions that would benefit from an accurate state, even if flarum wants to pretend otherwise.
Funny you mention banking, as I am working on precisely that.