title: CORS with php session
body: <p>I am working with CORS on a website. </p>
  
  <p>Code sample:</p>
  
  <pre><code>header("Access-Control-Allow-Origin: *");
  session_start();
  $session_id = session_id();
  </code></pre>
  
  <p>This code is working fine, but it's returning a new session id every time. </p>
  
  <p><strong>How can I maintain the session data in this situation?</strong></p>