title: Use the same session in XMLHttpRequest
body: <p>I am trying to make repeated requests to the server. But each request is done with a different session ID. I've searched a lot but could not figure out how. I tried to set Keep-Alive in the request but it won't accept that header saying "unsafe header".</p>
  
  <p>This is how I do</p>
  
  <pre><code>request = new XMLHttpRequest();
  request.open("POST", HOST, true);
  request.send("test");
  </code></pre>
  
  <p>But each time I call send, the session ID is different at the server side. How can I make requests within the same session using JavaScript?</p>