Jak przywrócić req.session.name to 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();
});