Beispiel #1
0
 public function logout()
 {
     $this->data = array();
     $this->uid = null;
     $this->session->remove('loginData');
     Cookie::delete('token');
     Cookie::delete('uid');
 }
Beispiel #2
0
 public function checkCookieToken($uid, $cookieToken = null)
 {
     $gentok = $this->genCookieToken($uid);
     if ($gentok == $cookieToken) {
         return $uid;
     }
     Cookie::delete('token');
 }