答案 0 :(得分:0)
感谢每一个人,我找到了我的问题答案。
在系统文件夹的会话库中,我在销毁会话之前更新我的表。
function sess_destroy()
{
// Kill the session DB row
if ($this->sess_use_database === TRUE && isset($this->userdata['session_id']))
{
$this->CI->db->where('session_id', $this->userdata['session_id']);
$this->CI->db->delete($this->sess_table_name);
}
// Kill the cookie
setcookie(
$this->sess_cookie_name,
addslashes(serialize(array())),
($this->now - 31500000),
$this->cookie_path,
$this->cookie_domain,
0
);
// Kill session data
date_default_timezone_set("Asia/Kabul");
$CI =& get_instance();
$CI->load->model('tsm/tsm_model');
$CI->tsm_model->update_session('3',0);
$this->userdata = array();
}