Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express session

app.use(session({
    secret: process.env.COOKIE_SECRET,
    resave: false,
    saveUninitialized: true,
    cookie: { maxAge: 1000 * 60 * 60 * 24 },
    store //connect-mongodb-session
}))
 
PREVIOUS NEXT
Tagged: #express #session
ADD COMMENT
Topic
Name
8+5 =