[TYPO3-mvc] Display a session-stored flash message on a cached controller action page after a redirect

"Christian Müller [kitsunet]" christian at kitsunet.de
Fri Jun 25 00:24:26 CEST 2010


On 25.06.2010 00:14, Thomas "Thasmo" Deinhamer wrote:
> Good evening,
>
> is it possible to display a flash message, which was set before
> redirected to a cached page?
>
> As far as I know the message is beeing stored in the PHP/TYPO3 session
> and will be rendered as soon as possible. Currently the message is NOT
> rendered on the cached page, but only on the next uncached page the user
> visits.
>
> My scenario is the following:
>
> The user clicks on 'Put product into the basket.'.
> When clicked, the user is redirected to the basket.
> The basket stores the product and saves a flash message.
> The user is now beeing redirected to the previous page. (Referer)
> The refering page is beeing displayed without the flash message.
> The message will get rendered only on the next visited uncached page.
>
> Is there a way to render the flash message without clearing the cache?
> Or is there even a way to display it, with clearing the cache?
>
> Any ideas?
>
> Thanks a lot,
> Thomas

Maybe you could create a fixed (meaning configurable in Plugin with 
Flexform and not changing by GET/POST) action to just display the 
messages and set it to be uncached? Just some first thought...

Christian


More information about the TYPO3-project-typo3v4mvc mailing list