From 47edff78846e96004da1522b3c75241dcc4e383c Mon Sep 17 00:00:00 2001 From: NIcolas Date: Sat, 26 Sep 2020 15:00:08 +0200 Subject: [PATCH] Adding req.session = null; like in the other starter --- appSystem/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/appSystem/auth.js b/appSystem/auth.js index a7254f0..d02009b 100644 --- a/appSystem/auth.js +++ b/appSystem/auth.js @@ -57,6 +57,7 @@ module.exports = function(app, db, session, bcrypt, logStream) { app.post("/logout", function(req, res) { req.session.loggedIn = false; + req.session = null; console.log("NOT LOGGED ANY MORE"); res.sendStatus(200); });