Express-session cookies not setting on localhost or Safari?
<p>It looks like express-session is not setting cookies when working locally or on Safari but they are working fine on Chrome when deployed on Heroku. Never come across this issue before. Below is how I have set up my <code>app.session()</code>:</p>

<pre><code>app.use(session({
    genid: function(req) {
      return genuuid();
    },
    secret: consts.SECRET_KEY,
    resave: false,
    saveUninitialized: false,
    resave: false
}));
</code></pre>

<p>When the user logs in I set <code>req.session.user = aValue</code> and then a resolve on my router checks to see if the server is getting a 200 or 401 back.</p>