Good point.  Is the issue that browsers will see the Location header,
and ignore the Set-Cookie header, or is it that PHP does not even
output the Set-Cookie header before the exit()?  If the latter, I
would have thought that having

$this->Session->initialise()  <- well, this happens implicitly
....

header('Location: ' . Router::url($url, true));
echo ' ';
ob_end_flush();
flush();
exit();

Should force all headers to be output before the exit().

On Sep 14, 2:43 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
>
> This is not restricted to 
> CakePHPhttp://www.google.com/search?q=session+values+lost+after+redirect
>
> It mostly boils down to PHP not being able to write the data before
> the redirect and exit()  takes place. I don't know what is more
> important - the redirect happening or the exit being called. Happens
> more often in DB bases sessions.
>
> In the worst case we had to abandon the use of header(Location: )
>
> HTH
>
> T
>
> --
> =============================================================
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =============================================================


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