Is there a symfony2 event/handler for session timeout a.k.a not logged in
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?
Is there a symfony2 event/handler for session timeout a.k.a not logged in
===

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?