session->userdata("username1unla"); if($user != ""){ //$_SESSION['user_id'] = $this->input->post('user_id1unla'); $value["success"]=true; $value["user_id"]=$this->session->userdata("user_id1unla"); $value["username"]=$this->session->userdata("username1unla"); $value["level_member"]=$this->session->userdata("level_member1unla"); $value["nm_klp"]=$this->session->userdata("nm_klp1unla"); $value["client"]=gethostbyaddr($_SERVER['REMOTE_ADDR']); }else{ $value["success"]=false; } echo json_encode($value); } }