code: function redirectToNext(req, res) {
    var redirectTo = req.session.next || '';
    req.session.next = null; // Null it so that we do not use it again.
    res.redirect(redirectTo);
  }
docs: Redirects the user to the new url.