Node.js based forum software built for the modern web
when logging out, end the express session
Julian Lame6fa91a4a479
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 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);