コード例 #1
0
ファイル: User.class.php プロジェクト: Root-Whoami/xss
 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
ファイル: User.class.php プロジェクト: snamper/cms
 function Logout()
 {
     if ($this->userId > 0) {
         //del cookie
         OCSetCookie('ocKey', '', -3600);
     }
     return true;
 }