title: AJAX call creates new session in Symfony
body: <p>I have a Symfony application. I am saving some information on the session in it, using <code>request-&gt;getSession()-&gt;set(key, value)</code>. </p>
  
  <p>If I call an action via a client side AJAX call, I can't access the session variables, which I saved earlier. It looks like the AJAX call generates me a completely new session (new session id, compared to the one present in the main flow).</p>
  
  <p>I have the following settings in <code>config.yml</code>:</p>
  
  <pre><code>session:         
      cookie_lifetime:         3600
      cookie_httponly:         false
  </code></pre>
  
  <p>The strange thing is, that on localhost I get the same sessionId via AJAX (so on localhost everything works fine). The issue started to appear after I deployed it on a webserver.</p>
  
  <p>Please advise. Thanks</p>