Solution to the Back button / double flash problem

Often you use flash to show a one time only status message (like “Your
account has been billed $21.50”). The problem being that when the
user goes on to another page, and hits back, they see it again, and
often get worried. Is there anyway to ensure that flash is displayed
only the first time, and not after hitting Back? (Perhaps using
JavaScript to detect this…)