title: Express 3.0 req.flash?
body: <p><strong><em>-- EDIT --</em></strong></p>
  
  <p>I wrote some middlware to do this: <a href="https://npmjs.org/package/flashify" rel="noreferrer">https://npmjs.org/package/flashify</a></p>
  
  <hr>
  
  <p>So since the release of Express 3.0, the changes have removed req.flash()</p>
  
  <p><a href="https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x" rel="noreferrer">https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x</a> (source)</p>
  
  <p>So here is my question now. They have advised to use req.session.messages in a local to display a flash.</p>
  
  <p>So to make a session accessible to the view, we have to do the following:</p>
  
  <p>nb: In coffee-script</p>
  
  <pre><code>app.locals.use (req,res) -&gt;
      res.locals.session = req.session
  </code></pre>
  
  <p>How would we access the session data from the view then clear it? We can't clear the contents of session after the view has rendered, but we can't clear it because it wont reach the view so im a bit lost as to how one would get around this problem?</p>