【发布时间】:2015-07-11 09:39:28
【问题描述】:
在尝试了很多不同的方法(成功处理程序、缓存指令、更改路由、覆盖方法等)之后,我无法注销用户(使用 FOSUserBundle),这使她在按下时无法查看以前的页面浏览器的后退按钮。
有没有办法在 Symfony 2.6 中做到这一点?
在 CakePHP 中,这在 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());
}
【问题讨论】:
标签: php symfony cakephp model-view-controller browser-cache