You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/05_cookie.sql
+3-2
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ VALUES (
54
54
(
55
55
'cookie',
56
56
'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.',
58
58
'BOOLEAN',
59
59
TRUE,
60
60
TRUE
@@ -85,7 +85,8 @@ VALUES (
85
85
```sql
86
86
SELECT ''cookie'' as component,
87
87
''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.
89
90
```
90
91
91
92
and then display the value of the cookie using the [`sqlpage.cookie`](functions.sql?function=cookie) function:
0 commit comments