Cookies #101
-
I was just trying the cookie example as documented on https://sql.ophir.dev/documentation.sql?component=cookie#component However, sqlpage tells me
So I checked whether my version of sqlpage was out of date by looking at the Github template folder, not finding Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi ! The error message is terrible, we should work on that. What it really means is that you are trying to set a cookie after having already rendered elements on the page, whereas the cookie component should always be used at the very top of the page.
|
Beta Was this translation helpful? Give feedback.
-
Thanks, this is what I was missing. |
Beta Was this translation helpful? Give feedback.
Hi !
The error message is terrible, we should work on that. What it really means is that you are trying to set a cookie after having already rendered elements on the page, whereas the cookie component should always be used at the very top of the page.