of course it does

variables in a script are always for that "session" only
a redirect even to the same url starts the whole process again

use session, file cache, or pass them with your redirect url
(depending on the kind of information and how much it is)


On 4 Dez., 13:59, Jeremy Burns <[email protected]> wrote:
> I am setting a variable using $this->set('name', value), and then
> redirecting the user to a different page using $this->redirect(array
> ('action' => 'index'), null, true);. The variable $name is no longer
> recognised. Does a redirect clear the set variables? If so, how can I
> pass the variable along to be used after a redirect?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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