It seems like you are having a problem with the browser caching the web
pages.  You might be able to adjust the header sent to the browser so
it does not cache.

Another approach would be to use a asynchronous update to display the
flash message, instead of the standard way.

To do that, add this method to your app_controller.php


function asynch_flash()
{
 $this->layout = 'ajax';
 $this->render('../pages/asynch_flash');
}

Add the following code to a file "asynch_flash.thtml" in your
app/views/pages/ directory

<?php
if ($session->check('Message.flash'))
{
 $session->flash();
}
?>

And to your layout file add the following in place of the usual flash
output

<div id="flash">
<script type="text/javascript">
<?php $cont = $this->params['controller']?>
new Ajax.Updater("flash", '<?php echo
$html->url("/$cont/asynch_flash/")?>');
</script>
</div>

That should do it, although it might look funny with debug on.

Hope that helps.

-- Russell


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to