$v) { $_SESSION[$k] = $v; } echo json_encode(['status' => 'ok', 'session_id' => session_id()]); } else { echo json_encode([ 'status' => 'ready', 'session_id' => session_id(), 'handler' => 'php_serialize', ]); }