Esempio n. 1
0
 public function logout()
 {
     $this->_db->delete('user_session', array('user_id', '=', $this->data()->id));
     Session::delete($this->_sessionName);
     cookies::delete($this->_cookieName);
 }
Esempio n. 2
0
 public function admLogout()
 {
     $this->_db->delete('adm_user_session', ['user_id', '=', $this->data()->id]);
     Session::delete('adm_' . $this->_sessionName);
     cookies::delete('adm_' . $this->_cookieName);
 }