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; }
function Logout() { if ($this->userId > 0) { //del cookie OCSetCookie('ocKey', '', -3600); } return true; }