title: PHP - Server side variables that will "live" for ever?
body: <p>I'm looking for a simple way to store a counter in the server memory to allow page load selection, kind of (pseudocode):</p>
  
  <pre><code>if counter is odd then load page-x 
  else (even counter)  load page-y
  increment counter by 1
  store counter in server's memory
  </code></pre>
  
  <p>Session variables would not help, among multiple users.</p>
  
  <p>I understand this could be achieved storing a field into the database, but this seems a cloggy approach. Was wondering for something faster.</p>
  
  <p>That's why I thought about some server side variables that are kept in memory across sessions....</p>