[TYPO3-dev] typoscript rendering: setting cookie and reading during runtime not working?

Nicolas Forgerit nicolas.forgerit at gmail.com
Wed Jan 2 10:09:07 CET 2013


Hey Simon,

On 2.1.13 2:05 AM, Simon Schaufelberger (Schaufi) wrote:
> happy and blessed new year! this is the first post in the new year ;)
All the best to you, too. Have a happy new year!
>
> i thought i have some understanding about typoscript rendering but now
> i am really stuck.
>
> what i want is: set a cookie at typoscript runtime and read it later
> in a condition and render a different page output if its there.
>
> Problem: the condition is only true after reloading the page.
>
As far as is understand, you want to persist some kind of state and
render some output based on the aforementioned state within one page
request/response cycle. This is not what client-side cookies are for;
they persist client-side state across several request/response cycles.
That is why your condition is true after reloading the page. What you're
trying to achieve should be done with TS registers (i.e. server-side
persistence).

Cheerio,
  Nicolas Forgerit




More information about the TYPO3-dev mailing list