session->userdata("usernameunlaprivate"); if($user != ""){ $value["success"]=true; $value["userid"]=$this->session->userdata("user_idunlaprivate"); $value["username"]=$this->session->userdata("usernameunlaprivate"); $value["level_member"]=$this->session->userdata("level_memberunlaprivate"); $value["nm_klp"]=$this->session->userdata("nm_klpunlaprivate"); $value["client"]=gethostbyaddr($_SERVER['REMOTE_ADDR']); }else{ $value["success"]=false; } echo json_encode($value); } }