"ok", "username" => $_SESSION["username"], "admin" => $_SESSION["admin"])); } else { echo json_encode(array("message" => "not logged in")); }