Bessere lesbarkeit bei session zeit

This commit is contained in:
Klaas 2024-06-02 01:35:38 +02:00
parent e84b543fb0
commit ef495986a7
1 changed files with 2 additions and 2 deletions

4
app.js
View File

@ -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