app.get('/dashboard', loadUser, function(req, res){ res.header('Cache-Control', 'no-cache'); res.header('Expires', 'Fri, 31 Dec 1998 12:00:00 GMT'); res.render('dashboard', { username: req.session.username }); });