Skip to content

Commit 2ddb7ee

Browse files
committed
fix error in cookie documentation
see #79
1 parent 2b1c135 commit 2ddb7ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/official-site/sqlpage/migrations/05_cookie.sql

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ VALUES (
5454
(
5555
'cookie',
5656
'secure',
57-
'Whether the cookie should only be sent over a secure (HTTPS) connection. If not specified, the cookie will be sent over both secure and non-secure connections.',
57+
'Whether the cookie should only be sent over a secure (HTTPS) connection. Defaults to TRUE.',
5858
'BOOLEAN',
5959
TRUE,
6060
TRUE
@@ -85,7 +85,8 @@ VALUES (
8585
```sql
8686
SELECT ''cookie'' as component,
8787
''username'' as name,
88-
''John Doe'' as value;
88+
''John Doe'' as value
89+
FALSE AS secure; -- You can remove this if the site is served over HTTPS.
8990
```
9091
9192
and then display the value of the cookie using the [`sqlpage.cookie`](functions.sql?function=cookie) function:

0 commit comments

Comments
 (0)