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