예제 #1
0
파일: Login.php 프로젝트: 4Publish/4p_core
 public function logout()
 {
     $this->data = array();
     $this->uid = null;
     $this->session->remove('loginData');
     Cookie::delete('token');
     Cookie::delete('uid');
 }
예제 #2
0
 public function checkCookieToken($uid, $cookieToken = null)
 {
     $gentok = $this->genCookieToken($uid);
     if ($gentok == $cookieToken) {
         return $uid;
     }
     Cookie::delete('token');
 }