title: Access all server session variables
body: <p>I thought about some helper to manage session variables on my development localhost.</p>
  
  <p>I would like to read,change and delete session variables from ALL vhosts on my machine.</p>
  
  <p>As far i know, from PHP i can access only current host session variables, which will be populated to $_SESSION variable, after call to session_start. That's not enough for my needs.</p>
  
  <p>After some research (ex. <a href="https://stackoverflow.com/questions/3426844/access-active-sessions-in-php">Access active sessions in PHP</a>) i found solution :</p>
  
  <ul>
  <li>Load all files from php session directory</li>
  <li>Use <a href="http://www.php.net/manual/en/function.session-decode.php" rel="nofollow noreferrer">session_decode</a> to load data to $_SESSION variable</li>
  <li>Read/change/delete some variables</li>
  <li>Use <a href="http://www.php.net/manual/en/function.session-encode.php" rel="nofollow noreferrer">session_encode</a> to encode my session back to file</li>
  </ul>
  
  <p>There is any better method to do that?
  Maybe there is already dedicated tool for that task?</p>
  
  <p>EDIT:
  Another solution which i now currenty use is just enable debugger in IDE for desired project, and use watches/stack window to edit session.</p>
  
  <p>EDIT2:
  I dont want any project-specific solution like storing session data in database. This should work "out-of-the-box", for any project.
  For better understanding, use example:
  In magento admin panel grid filters are stored in session variables.
  When you enable broken filter there is an error page, and you can't easily disable this filter without removing session cookie, or setting debugger for it.</p>