Wednesday, June 29, 2011

Subtle difference between flash and

The flash variable is supposed to be used before a redirect. So it appears in the resulting page and waits for a request. So if we use it before we do anything but redirect, for instance before render, it would appear in the rendered page but is still waiting for a "redirect" request and so will appear again if you click a link.

To avoid this weird behavior we use during a render instead of flash. is supposed to be used in pages that are rendered. 

No comments:

Post a Comment