when logging out, end the express session

v1.18.x
Julian Lam 9 years ago
parent 51faa5496b
commit e6fa91a4a4

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

Loading…
Cancel
Save