I'm using CI 3.1.0. On the login page, I set the user info for the session with set_userdata
, after which I set the session redirect page to another controller, but the session data I set got destroyed.
$this->session->set_userdata('admin_id',$data['admin_details']->id);