title: Node.js ExpressJs Create Session
body: <p>How can I create session in expressjs(4.0)?</p>
  
  <p>I am doing exactly same in the <a href="https://github.com/expressjs/session" rel="nofollow"><strong>links</strong></a></p>
  
  <pre><code>var session = require('express-session');
  
  /* session */
  app.use(session({ secret: '1s2sd25asd7asd5asd7f4f1f'}))
  </code></pre>
  
  <p>However it gives error? </p>
  
  <pre><code>TypeError: Cannot read property 'connect.sid' of undefined
  </code></pre>
  
  <p>How do I create session in expressjs? I have been trying to create session for 3 days.</p>