res.cookie stops creating cookies after a long period of time
<p>I have having an extremely odd and infuriating issue. Res.cookie stops setting cookies for some users after the users have existed for a long period of time. The newer user cookies set fine, even on the same browser. </p>

<pre><code>    var token = jwt.sign(user, config.secret, {
          expiresIn: "1 day" // expires in 24 hours
      });
      console.log(token.length)
      res.cookie('token', token, { maxAge: 9000000, httpOnly: false});
</code></pre>

<p>Is how the token is set.</p>

<pre><code>  var token = req.cookies['token'];



if (token) {
   jwt.verify(token, config.secret, function(err, decoded) {


     .....
     }
</code></pre>

<p>is how it is read. 
The output of req.cookies is {}. </p>

<p>Has anybody seen this issue before? It doesn't make sense. </p>