Bessere lesbarkeit bei session zeit
This commit is contained in:
parent
e84b543fb0
commit
ef495986a7
4
app.js
4
app.js
|
@ -33,8 +33,8 @@ app.use(express.urlencoded({ extended: false }));
|
||||||
app.use(session({
|
app.use(session({
|
||||||
secret: process.env.SESSIONSECRET,
|
secret: process.env.SESSIONSECRET,
|
||||||
resave: false,
|
resave: false,
|
||||||
saveUninitialized: false,
|
saveUninitialized: true,
|
||||||
cookie: { maxAge: 1800000 }
|
cookie: { maxAge: 1000 * 60 * 60 * 24 * 2 }
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Authentifizierungs-Middleware
|
// Authentifizierungs-Middleware
|
||||||
|
|
Loading…
Reference in New Issue