Using cookie-session instead of express-session solved this issue for me.
You store the session on the client and not on the server with cookies.
Simply:
- Install it with
npm install cookie-session - Change
var session = require('express-session');to
var session = require('cookie-session');