title: Remove flash message on refresh of page
body: <p>I am using devise for log in and i have overwrite my devise session controller and showing flash messages if user enter wrong information using following code to display flash message.</p>
  
  <pre><code>&lt;% flash.each do |name, msg| %&gt;
      &lt;%= content_tag :section, msg, :id =&gt; "flash_#{name}", :class =&gt; " flash" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>And it is working fine and showing <strong>"Invalid email or password."</strong> message if user enter wrong email and password .</p>
  
  <p>Now it is still showing the same flash message if i refresh the page.
  But i want the flash message to be remove if page gets refresh .please help me on same.</p>