title: req.cookies returns undefined but cookies are set
body: <p>I am using <code>cookie-parser</code> in my express app. When the root page is requested I set a random number on the cookie using <code>res.cookie(name, value)</code> and it sets it fine (I checked on my browser console). But when I try to log <code>req.cookie</code> it always returns undefined.</p>
  
  <p>Here's my code:</p>
  
  <p><strong>routes.js</strong></p>
  
  <pre><code>var express = require('express')
  var router = express.Router()
  
  var movieTrailer = require('movie-trailer');
  
  var Promise = require('bluebird');
  var logs = require('log-switch');
  var fs = require('fs');
  //var cookieParser = require('cookie-parser');
  
  //Setup x-ray for scraping
  var Xray = require('x-ray');
  var x = Xray();
  
  var debug = false;
  
  router.get('/', (req, res) =&gt; {
    console.log('Page requested!');
    console.log('Cookies: ', req.headers.cookies); // For some reason this returns undefined
  
    var scrapeMovies = function(){
      return new Promise((resolve, reject) =&gt;{
        fs.readFile('moviesRT.json', (err,data) =&gt;{
          var movies = JSON.parse(data);
          resolve(movies);
        });
      });
    };
  
  scrapeMovies().then(
      movies =&gt; {
        var randomInt = Math.floor(Math.random() * movies.length);
        res.cookie('randomInt', randomInt);
        var randomMovie = movies[randomInt];
        movieTrailer(randomMovie.title, (err, url) =&gt;{
          console.log('Requesting trailer: ', randomMovie.title);
          if(err) throw err;
          var embedUrl = url.replace('watch?v=','embed/');
          console.log('Video ID: ', url.slice(32,url.length));
          randomMovie.trailerURL = embedUrl; //Add the embed URL to the randomMovie object before rendering it
          res.render('main',randomMovie,
          (err, html) =&gt;
          {
            if(err) throw err;
            console.log('Rendering...');
            res.send(html);
            console.log("Done!");
          });
        });
      });
  
  });
  
  module.exports = router;
  </code></pre>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>const express = require('express');
  
  //Define app and settings
  const app = express();
  const exphbs = require('express-handlebars');
  var cookieParser = require('cookie-parser');
  const port = 3000;
  
  var routes = require('./routes');
  
  var debug = true;
  
  app.use('/', routes);
  app.use(express.static('public'));
  app.use(cookieParser());
  //app.use(cookieParser());
  
  //View engine
  app.engine('handlebars', exphbs({defaultLayout: 'main'}));
  app.set('view engine', 'handlebars');
  
  app.listen(port, function () {
    console.log(`Server Starts on ${port}`);
    if(!debug) logs.disable(); //Disable logging if debug variable is false
  });
  </code></pre>