コード例 #1
0
ファイル: rcmail.php プロジェクト: CDN-Sparks/owncloud
 /**
  * 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();
 }
コード例 #2
0
ファイル: rcmail.php プロジェクト: shishenkov/zpanel
 /**
  * Destroy session data and remove cookie
  */
 public function kill_session()
 {
     $this->plugins->exec_hook('session_destroy');
     $this->session->remove();
     $_SESSION = array('language' => $this->user->language, 'auth_time' => time(), 'temp' => true);
     rcmail::setcookie('sessauth', '-del-', time() - 60);
     $this->user->reset();
 }