示例#1
0
 function Logout()
 {
     if ($this->userId > 0) {
         //del cookie
         OCSetCookie('ocKey', '', -3600);
         //del session
         $this->db->Execute("DELETE FROM " . $this->tbSession . " WHERE userId='" . $this->userId . "'");
     }
     return true;
 }
示例#2
0
 function Logout()
 {
     if ($this->userId > 0) {
         //del cookie
         OCSetCookie('ocKey', '', -3600);
     }
     return true;
 }