-
Beta Was this translation helpful? Give feedback.
Answered by
lovasoa
Feb 13, 2024
Replies: 2 comments 8 replies
-
|
Hi ! It looks like your code references tables and other sql files that are not included here. A previous discussion that may be relevant: #200 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Looking at your code more closely:
select 'text' as component,
'Cookie session = '|| sqlpage.cookie('session_token') as contents;
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


INSERT INTO session (id, username) values (sqlpage.random_string(32), :username) RETURNING 'cookie' AS component, 'session_token' AS name, id AS value, false as secure, - '/' as link; + '/' as path;The documentation for the path attribute says
There was a mismatch between the documentation and the actual behavior. Current versions of SQLPage set the cookie only for the current folder (
/action/in your case) when thepathproperty is omitted. The behavior has been fixed to match the documentation, and will be released in sqlpage 0.19. In the meantime, you have to explicitly set'/' as pathin the cookie comp…