0
我已经在UserController中编写了此代码,但无法获得结果。每当我在同一浏览器的两个选项卡中打开管理面板,并且如果从一个选项卡注销,当点击任何菜单时,从其他标签重定向到登录页面。我正在使用cakephp,想知道如何过期管理员会话
function beforeFilter()
{
if(($this->request->prefix)=='admin')
$this->Auth->allow();
$chk = $this->Session->check('Admin');
$this->disableCache();
if(@$this->Session->read('Admin') && ($this->request->action == 'admin_login'))
{
$this->redirect(array('action' => 'dashboard','admin' => true));
}
}