The company I work for uses Symfony, and the workaround we used is to trigger a warning with javascript before the user logs out. I suspect there is a way to make "heartbeat" ajax calls to the server to start the timer on reset, but this can be a big problem. I think that there may not be a complete fix suitable for you, although it might be a rewrite of the session handler.
Sorry, I could not be more specific, if I have such an opportunity, I will ask our Symfony developers if they find out about the best solution.
source share