title: PHP Save Session when using session_write_close();
body: <p>I've one page where i do a long polling i've to use at the begin of this page this</p>
  
  <pre><code>session_start();
  session_write_close();
  </code></pre>
  
  <p>Because :</p>
  
  <blockquote>
    <p>to prevent concurrent writes only one script may operate on a session at any time</p>
  </blockquote>
  
  <p>So if i do not and the long polling is running the user will not be able to load another page.</p>
  
  <p>So accessing to my data in session from this polling page is possible but at some point in my script i've to save my session back to the server because i made some change in it.</p>
  
  <p>What's the way to do it?</p>
  
  <p>That will be very nice it'll be a way to do something like</p>
  
  <pre><code>session_write_open();
  //do stuff
  session_write_close();
  </code></pre>
  
  <p>But the session_write_open() doesn't exist!</p>
  
  <p>Thanks</p>