in my controller i have thought of this method:

//check if session_key exists
// if yes: go ahead and allow the save
// if no: set $this->data=null
if (empty($this->data))
{
    //set session key to allow save
}
else
{
    //delete the session key

}

is there another method? or this is a good solution?


On Mon, Mar 10, 2008 at 2:43 AM, bob <[EMAIL PROTECTED]> wrote:

> i save a form data in page1. it redirects to page2. if i press the back
> button in the browser, all the data is still there. how do i detect that the
> back button was just pressed, so i can set $this->data to null? Can I use
> the afterFilter() and set $this->data to null there?
>

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