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); });