According to the documentation in
http://wiki.cakephp.org/tutorials:flashing I made a site using flashing
to give messages or alerts to users. It works ok, but the problem is
comes when the user goes back (through   the browser's back button) and
goes forward (also through the browser's button), the message comes
again.
I tried removing the div from the DOM object via js after showing the
message but it has the same efect, the message going back and forward,
it cames again....
I also try deleting the session variable with no effect

in my layout
if ($this->controller->Session->check('Message.flash'))
{
   $this->controller->Session->flash();
        $this->controller->Session->del('Message.flash');
}

Does some one know how to solve this problem, how to show ONLY ONCE the
flash message using back and forward button of the browser.

Regards

MARTIN

PD: this way of doing
$this->controller->Session->flash(); in the layout does not work with
the last version of framework.


--~--~---------~--~----~------------~-------~--~----~
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