@ -56,9 +56,8 @@ module.exports = function (middleware) {
}
}
// Ensure that the session is valid. This block guards against edge-cases where the server-side session has
// Ensure that the session is valid. This block guards against edge-cases where the server-side session has
// been deleted (but client-side cookie still exists).
// been deleted (but client-side cookie still exists)
// req.session.flash is present if you visit register/login, so all logged-in users have it, but it is missing if your server-side session got destroyed.