Example #1
0
 /**
  * Destroy session data and remove cookie
  */
 public function kill_session()
 {
     $this->plugins->exec_hook('session_destroy');
     $this->session->kill();
     $_SESSION = array('language' => $this->user->language, 'temp' => true);
     $this->user->reset();
 }