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

  • NodeBB

    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

Suggested Topics

  • 7
  • 1
  • 3
  • 8
  • 6
| |