Skip to content

Cookies #101

Answered by lovasoa
ipftalabua asked this question in Q&A
Oct 12, 2023 · 2 comments
Discussion options

You must be logged in to vote

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.

Since cookies need to be set before the response body is sent to the client, this component should be placed at the top of the page, before any other components that generate output.

https://sql.ophir.dev/documentation.sql?component=cookie#component

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ipftalabua
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants