var session = require('express-session');
// Создаем сервер на Express4
app.use(session({
genid: function(req) {
return uuid.v4();
},
saveUninitialized: false,
resave: true,
cookie: {
name: "SSID",
maxAge: (60*60*1000*24),
secure: true // <- ПРОБЛЕМА
} ,
key: "SSID",
secret: "super secret string",
proxy: true,
store: MongoStore
}));