So, I'm using angular 1.5.9 and Symfony 2.8 in my project. Also FOSUserBundle is in use, but I'm not sure if it's matters.
Currently I need to logout user after 10 minutes inactivity. So, I want to use a solution as described here
And here is a problem I encountered - as long as I using angular and all my requests are asyncronous after this line is executed
$event->setResponse(new RedirectResponse($this->router->generate('fos_user_security_login')));
I'm not being redirected to login page. I was thinking about it but can't figure out what can I do without rewriting my each $http
request in order to be able to handle redirect response.