[SOLVED] cookie store



  • Any way to turn off saveUninitialized for the cookies in the config?
    Thanks, legends



  • app.use(session({
    		store: db.sessionStore,
    		secret: nconf.get('secret'),
    		key: nconf.get('sessionKey'),
    		cookie: setupCookie(),
    		resave: nconf.get('sessionResave') || false,
    		saveUninitialized: nconf.get('sessionSaveUninitialized') || false,
    	}));
    

    The default is already off, you can put sessionSaveUninitialized: false in your config.json to make sure.



  • Thanks for the reply

    I added it the config, I had over 300 objects in the session database


Log in to reply
 

Suggested Topics

| |