diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index bc2369bd62..2cc635b80c 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -307,6 +307,7 @@ authenticationController.logout = function(req, res, next) { return next(err); } req.logout(); + req.session.destroy(); user.setUserField(uid, 'lastonline', Date.now() - 300000);