After mongoose.set, I put this: app.use(cookieSession({ maxAge: 246060*1000, //24horas keys: [restricted.cookieSession.keys] }))
But the message still appears: "Warning: connect.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process." What else could I change?