MrCaspan I'd agree. Seems like it'd be better UX to force a page refresh if a user's session is set to log out and actually log them out...
When I was tinkering with flarum, it seems like it does the opposite. The user session times out, but they don't know because it appears they're still logged in, so it'll error out, then they'll need to log back in to continue doing anything.