Authored by whb

奇怪问题

... ... @@ -31,7 +31,7 @@ class Controller_Admin_Base extends Controller_Abstract
protected function beforeExecute()
{
//获取session
$session = $this->getCookie('_admin');
$session = Util_Utils_SafeCookie::get('_admin');
$session = unserialize($session);
//非默认控制器,则校验权限
if ($this->_request->controller_name != 'default' && !$session)
... ... @@ -77,7 +77,7 @@ class Controller_Admin_Base extends Controller_Abstract
{
$exitUser = serialize($exitUser);
//通过
$this->setCookie('_admin', $exitUser);
Util_Utils_SafeCookie::set('_admin', $exitUser);
return true ;
}
return false ;
... ... @@ -89,9 +89,6 @@ class Controller_Admin_Base extends Controller_Abstract
*/
protected function logout()
{
$this->delCookie('_admin');
Util_Utils_SafeCookie::clear('_admin');
}
}
\ No newline at end of file
... ...