Take the tour ×  Im using the FOSRestBundle to make ajax json
calls within a Firewall. Everything seems to be working great,
with the exception that Im not able to to handle when a session
timeout has occurred. Right now it's redirecting to login_check
in this scenario, returning html rather than json to the client.
Im aware, and use success_handler and failure_handler's within
my app. I cannot find a built in handler for dealing with
authorisation failures, such as session timeout.  Is there
something within the FOSRestBundle that can help address this,
or something Im not seeing within Symfony2?  share|improve this
question add comment  1 Answer  I'm not sure if there's anything
explicitly inside the FOSRest bundle, but Symfony2 itself is
able to handle session timeouts.  Have you tried looking here? h
ttp://symfony.com/doc/current/components/http_foundation/session
_configuration.html  share|improve this answer add comment  Your
Answer