Beispiel #1
0
 private function __construct()
 {
     $notice = json_decode(Base_Cookie::get($this->key), true);
     Base_Cookie::remove($this->key);
     $this->type = $notice['type'];
     $this->message = $notice['message'];
     return $this;
 }
Beispiel #2
0
 /**
  * 退出登录
  * @return void
  */
 public function logout()
 {
     Base_Cookie::remove($this->cookieName);
 }