private static function jsonException($msg, $errno) { Session::save(); exit(json_encode(['errno' => $errno, 'msg' => $msg])); }