title: Node&Express:req.flash() requires sessions
body: <p>I have some problems with connect-flash.
  Here is my configuration    </p>
  
  <pre><code>var flash=require('connect-flash');
  var session=require('express-session');
  
   app.use(flash());
   app.use(session({
      secret:settings.cookieSecret,
      key:settings.db,
      cookie:{maxAge:60000},
      resave:false,
      saveUninitialized:true
  }));
  
  app.use(function(req,res,next){
      res.status(err.status || 500);
      res.render('error', {
          message: err.message,
          error: {}
      });
  });
  </code></pre>
  
  <p>I'm so confused and I don't know how to solve this</p>