Logout codeigniter

后端 未结 5 1118
情话喂你
情话喂你 2021-01-05 19:22

I have a logout controller in codeigniter :

session->sess_de         


        
5条回答
  •  借酒劲吻你
    2021-01-05 20:08

    Follow ALex's suggestion, but using CI code:). What I mean, try unsetting each session data individually. I read once about an issue in version 2.0.3 I think, but I don't remember now and I don't have time to search for the reference. It's in their forum, though, and the suggestion was the same: unset each session element one by one.

    $this->session->unset_userdata('data_one');
    $this->session->unset_userdata('data_two');
    $this->session->unset_userdata('data_three');
    $this->session->unset_userdata('data_one');
    $this->session->sess_destroy();
    redirect('home','refresh');  // 
         
     
    热议问题