title: Will a php Singleton class instance be retained across multiple sessions?
body: <p>For the sake of a simple example, if I want to count the number of hits a script gets without the use of disk storage, can I do this with a static class member?</p>
  
  <p>User1:</p>
  
  <pre><code>&lt;?php
  $test = Example::singleton();
  $test-&gt;visits++;
  ?&gt;
  </code></pre>
  
  <p>User2:</p>
  
  <pre><code>&lt;?php
  $test = Example::singleton();
  $test-&gt;visits++;
  ?&gt;
  </code></pre>
  
  <p>Will the value of <code>$visits</code> be 1 or 2?</p>