[eluser]Vaibhav132[/eluser]
How do i insert into ci_session table, when user checks the checkbox ?
Right now i am using the following method to check if the user if logged in after the window is closed
Code:
if($query) // if the user's credentials validated...
{
$data = array(
'username' => $this->input->post('username'),
'is_logged_in' => true,
'password' => $this->input->post(md5('password'))
);
$this->session->set_userdata($data);
redirect('dashboard/members_area');
}