$data = [ 'useragent' => $this->agent->agent_string() ]; $this->session->set_userdata('user', $data);