title: Session does not work suddenly
body: <p>I have a big problem with sessions.</p>
  
  <p>I drive to create an application around "Redis" nodejs with different libraries as express.</p>
  
  <p>But suddenly the sessions no longer works. And I do not understand why.
  So I reformatted my server and reinstall all properly.
  (I am using Debian 6)</p>
  
  <p>And the basic test is still not working: (.</p>
  
  <p>Here's the test:</p>
  
  <pre><code>var express = require('express');
  var app = express.createServer();
  
  var RedisStore = require('connect-redis')(express);
  app.use(express.bodyParser());
  app.use(express.cookieParser());
  app.use(express.session({ secret: "keyboard cat", store: new RedisStore }));
  
  app.get('/', function(req, res){
      var sess = req.session;
      req.session.visitCount = req.session.visitCount ? req.session.visitCount + 1 : 1;
  
      if (sess.views) {
          res.setHeader('Content-Type', 'text/html');
          res.write('&lt;p&gt;views: ' + sess.views + '&lt;/p&gt;');
          res.write('&lt;p&gt;expires in: ' + (sess.cookie.maxAge / 1000) + 's&lt;p/&gt;');
          res.write('&lt;p&gt;You have visited this page ' + req.session.visitCount + ' times&lt;/p&gt;');
          res.end();
          sess.views++;
        } else {
          sess.views = 1;
          res.end('welcome to the session demo. refresh!');
        }
  });
  
  app.listen(4000);
  </code></pre>
  
  <p>the program runs correctly (no error).
  but when I use the "sess.views" is never valid</p>
  
  <p>so I always see : <em>welcome to the session demo. refresh!</em></p>
  
  <p>I am a bit desperate.</p>
  
  <p>Thank you in advance for your help</p>