sess_destroy() public method

Legacy CI_Session compatibility method
public sess_destroy ( ) : void
return void
Esempio n. 1
0
 function sess_destroy()
 {
     //write your update here
     $this->CI->db->update('u_user', array('status_login' => 0), array('username' => 'admin'));
     //call the parent
     parent::sess_destroy();
 }
Esempio n. 2
0
 public function sess_destroy()
 {
     if (ENVIRONMENT === 'testing') {
         log_message('debug', 'Session: calling session_destroy() skipped under testing.');
         return;
     }
     parent::sess_destroy();
 }
Esempio n. 3
0
 function sess_destroy()
 {
     if ($this->is_custom_session) {
         return $this->session_driver->sess_destroy();
     } else {
         return parent::sess_destroy();
     }
 }
Esempio n. 4
0
 public function sess_destroy()
 {
     if (isset($this->userdata['session_id']) && isset($this->userdata['userid'])) {
         $this->ci =& get_instance();
         $this->ci->load->model('opt_log_model');
         $this->ci->opt_log_model->log('logout');
     }
     parent::sess_destroy();
 }
Esempio n. 5
0
 public function sess_destroy()
 {
     // Do NOT update an existing session on AJAX calls.
     if (!$this->CI->input->is_ajax_request()) {
         return parent::sess_destroy();
     }
     /* WHEN USER HIS/HER SELF DO A LOGOUT AND ALSO IF PROGRAMMER SET TO LOGOUT USING AJAX CALLS*/
     $firsturlseg = $this->CI->security->xss_clean($this->CI->uri->segment(1));
     $securlseg = $this->CI->security->xss_clean($this->CI->uri->segment(2));
     if ((string) $firsturlseg == (string) 'put ur controller name which u are using for login' && (string) $securlseg == (string) 'put url controler function for logout') {
         return parent::sess_destroy();
     }
 }