0
if ($this->Adminmodel->chck_login($this->input->post('email'), $this->input->post('password')) =="true")
{
redirect("admin/index");
}
if ($this->Adminmodel->chck_login($this->input->post('email'), $this->input->post('password')) =="true")
{
redirect("admin/index");
}
ログアウトセッションをクリアしたい場合は、次のコードをコントローラに使用できます。ここで、userDataは、セッションのデータを設定する配列です。セッションを削除するには
public function logout() {
$this->session->unset_userdata('token');
$this->session->unset_userdata('userData');
$this->session->sess_destroy();
redirect('admin/index');
}
は、これを読んで - >Sessions
あなたの質問には質問、ちょうど悪いフォーマットされたコードはありません。あなたは質問を提供する必要があります:) – hering