diff --git a/app.js b/app.js index af9ba18..fc50195 100755 --- a/app.js +++ b/app.js @@ -93,11 +93,17 @@ app.use(function(req, res, next) { } else { res.locals.userMessageType = "info"; } + + req.session.userMessage = null; + req.session.userMessageType = null; + } + + if (req.session.query) { + res.locals.query = req.session.query; + + req.session.query = null; } - req.session.userMessage = null; - req.session.userMessageType = null; - // make some var available to all request // ex: req.cheeseStr = "cheese";