Tuesday, October 26, 2010

flash message problem

Hello,

I've come accros a problem with the flash messages.
In my core config file I've set the session save to 'php', so it
should handle like it normaly would.

The problem is now, that some how the write function and the close
function of the session are called BEFORE there is any output send to
the browser. This is a problem because when I call $session->flash()
in met view file it wont remove the flash message from the session
because the session allready has been saved.

I've also tried the cake session and a custom session, but each time
the closing of the session happens before any output has been send to
the browser (and thus not having seen my $session->flash() call).

Regards,
Sven Buis

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: