After trying a lot of different ways (success handler, cache directives, changing routes, overriding methods, etc.) I haven't been able to logout a user (using the FOSUserBundle) disabling her to see previous pages when pressing the back-button of the browser.
Is there a way to do it in Symfony 2.6?
In CakePHP this works perfectly in a Controller
public function logout() {
session_destroy();
$this->Auth->deny('*');
$this->Auth->shutdown('*');
$this->Session->setFlash('Logout succesful - no back button issue.');
return $this->redirect($this->Auth->logout());
}