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