Why AJAX? Are you not using the Multiplayer plugin?
After receiving every successful ping on the host, you can restart a timer, for example "Player1IsAlive" for 10 seconds. When this timer triggers, this means that the host hasn't received a ping from this player for 10 seconds.