“Express Session SaveuninInticialized” Código de respuesta

Sesión expresa de NPM

npm i express-session	//On Hyper/CMD

const session = require('express-session');	//To Acquire it

app.use(session({ 		//Usuage
  secret: 'keyboard cat',
  resave: false,
  saveUninitialized: true,
  cookie: { secure: true }
}));
KD

Express Session SaveuninInticialized

<!---------------------------------------------------------------------->
What is express-session saveUninitialized?
  
Forces a session that is “uninitialized” to be saved to the store. 
A session is uninitialized when it is new but not modified.  

"One thing to note is that if you set saveUninitialized to false,
the session cookie will not be set on the browser unless the session
is modified." 
<!---------------------------------------------------------------------->
KostasX

Respuestas similares a “Express Session SaveuninInticialized”

Preguntas similares a “Express Session SaveuninInticialized”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código