id = $_POST['sessionId']; else trigger_error( missing_parameter_error("sessionId") ); // create the game session if ($gameSession->load()) { $session_arr = $gameSession->getResultArray(true, "Session_Found"); print_r(json_encode($session_arr)); // OK } else trigger_error("Error_Occured"); ?>