Como renderizar req.session.name para EJS
app.use(function(req, res, next) {
res.locals.user = req.session.user;
next();
});
Old-fashioned Ostrich
app.use(function(req, res, next) {
res.locals.user = req.session.user;
next();
});