Good afternoon guys, here is my code:
var express = require('express'); var session = require('express-session'); var app = express(); app.set('trust proxy', 1); app.use(session({ secret: 'secret', saveUninitialized: true, resave: false, maxAge: 1000 * 60 * 15, cookie:{ secure: true } }));
this code always returns to my a log:
Warning: connect.session () MemoryStore is not intended for a production environment, as this will lead to a memory leak and will not be scaled in one process.
I tried to take a walk about this, but it seems that I do not understand some lessons. Sorry for my bad english.
Ginxxx
source share