title: Php, read/write SESSION simulteanously, two threads
body: <p>in Php, there is a script, runs occasionally:</p>
  <pre><code>session_start();
  $_SESSION['x']++;
  </code></pre>
  <p>and something to use it, backround-service, runs &quot;forever&quot;:</p>
  <pre><code>session_start();
  do
  {
      echo $_SESSION['x']; // never gets updated!
  } while(true);
  </code></pre>
  <p>the problem is, the <code>echo</code> echoes the same result, like it never gets updated. But both are running. Maybe sessions should be reloaded somehow?</p>