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

master-GE
Josh 2011-10-03 20:29:48 -04:00
parent 27e2d4e631
commit d6f7343c97
1 changed files with 5 additions and 2 deletions

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));
?>
?>