Пример #1
0
 /**
  * delete Authorize/Authenticate url cookie
  */
 public function deleteAuthorizeCookie()
 {
     $this->Cookie->delete($this->_getAuthorizeUrlCookieName());
     $this->Cookie->delete($this->_getAuthenticateUrlCookieName());
 }
Пример #2
0
 /**
  * logout方法,操作员退出登录.
  */
 public function logout()
 {
     $cookie = new CookieComponent();
     $cookie->delete('session');
     unset($_SESSION['session']);
 }