send an exception when a session has timed out on the server side

This commit is contained in:
Josh 2011-10-03 20:29:48 -04:00
parent 27e2d4e631
commit d6f7343c97

View File

@ -721,8 +721,11 @@ error_log("message");
}
//=============================================================
} else {
} else if (isset($_SESSION['K'])) {
$result["error"] = "Wrong shared secret!";
} else {
$result["result"] = "EXCEPTION";
$result["message"] = "Trying to communicate without an active connection";
}
break;
@ -741,4 +744,4 @@ error_log("default");
echo(json_encode($result));
error_log("result: ".json_encode($result));
?>
?>