title: PRG Pattern problem?
body: <p>I am using the <a href="http://en.wikipedia.org/wiki/Post/Redirect/Get" rel="nofollow">POST/REDIRECT/GET</a> pattern in my application. However, I have a problem:</p>
  
  <p>In case I want to display a message at the GET stage, I can store it as as session variable at the POST stage (when it is decided what message should be displayed), for example <code>$_SESSION['message']='mplampla';</code></p>
  
  <p>Using this technique, the message should be unset after being displayed in order not to display it again erroneously in other pages. But if user the goes back and then forward to the GET page again, the message won't display the second time as it has been unset the first time around.</p>
  
  <p>I don't know how other websites manage this... I have seen a web site with a registration form, which displays a message after successful registration under the same URL and works correctly when doing back/forward.</p>