send an exception when a session has timed out on the server side
This commit is contained in:
parent
27e2d4e631
commit
d6f7343c97
@ -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));
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user