Logout codeigniter

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

I have a logout controller in codeigniter :

session->sess_de         


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 20:15

    You can also try manually setting your "logged_in" or whatever you called the session to false. Then, destroying all other session data.

        $this->session->set_userdata('logged_in', FALSE);
        $this->session->session_destroy();
        redirect('index');
    

提交回复
热议问题