title: PHP: how to limit the number of session files?
body: <p>I periodically remove the tmp out of session files. Apparently, I mismanage sessions because of the huge number of sessions. How do you manage your sessions, not their amount becoming too large? How do you make sure you do not make a new session if one exists?</p>
  
  <p>Command I have used, not sure how they really work:</p>
  
  <pre><code>ob_start (); 
  session_save_path("/tmp/");
  session_start();
  ob_end_flush (); 
  </code></pre>