title: Best Session Storage Middleware for Express + MongoDB
body: <p>I was looking for the best middleware for storing session data in MongoDB to use in a production application that uses express?</p>
  
  <p>I've been looking around and found this:</p>
  
  <ol>
  <li><p><strong>session-mongoose</strong>
  (<a href="https://github.com/donpark/session-mongoose">https://github.com/donpark/session-mongoose</a>)
  According to author's comment this is not production-ready for following reasons:</p>
  
  <blockquote>
    <ul>
    <li>insufficient testing </li>
    <li>zero optimization </li>
    <li>there are better
    options than MongoDB for session storage</li>
    </ul>
  </blockquote></li>
  <li><p><strong>connect-mongo</strong> (<a href="https://github.com/kcbanner/connect-mongo">https://github.com/kcbanner/connect-mongo</a>)</p></li>
  <li><p><strong>express-session-mongo</strong> (<a href="https://github.com/davglass/express-session-mongo">https://github.com/davglass/express-session-mongo</a>)</p>
  
  <blockquote>
    <p>Based on these classes</p>
    
    <ul>
    <li>Sencha Connect Memory Store</li>
    <li>ciaranj's express-session-mongodb</li>
    </ul>
  </blockquote></li>
  <li><p><strong>connect-session-mongo</strong> (<a href="https://github.com/bartt/connect-session-mongo">https://github.com/bartt/connect-session-mongo</a>)</p></li>
  </ol>
  
  <p>I've been looking at their code, I was trying to find also a performance comparisson article. Do you guys have experience to suggest which is the best?</p>