When to use saveUninitialized and resave in express-session
问题 I am newbie with the MEAN stack. I read the express-session github doc but there are some options which are unclear to me. Those options are saveUninitialized and resave . Can anyone please explain with examples what are the advatanges of using saveUninitialized and resave , and what will the effect be if we change the boolean values in those options. Syntax:- app.use(session({ resave: false, saveUninitialized: true, })) 回答1: Let's assume that sessions are enabled globally (for all requests).