title: Edit session after session_write_close();
body: <p>Is following syntax right to edit a session after session_write_close()?</p>
  
  <pre><code>&lt;?php
  session_start();
  unset($_SESSION['val']);
  session_write_close();
  // ...some code here
  // edit session
  $_SESSION['val']= 'test';
  session_write_close();
  ?&gt;
  </code></pre>
  
  <p>What is the best syntax to do everything?</p>