How to use [response.cookies.set]
The reference page of response.cookies.set has its arguments, constraints and declaration.
Since cookies have more parameters than just a simple key/value declaration, the [response.cookies.set] slot takes the following arguments.
- [value] - The string content of your cookie
- [expires] - Absolute expiration date of your cookie, as a Hyperlambda
datevalue - [http-only] - Boolean value declaring whether or not the cookie should only be accessible on the server
- [secure] - Boolean value declaring whether or not cookie should only be transmitted from the client to the server over a secure (https) connection
- [domain] - Domain value of your cookie
- [path] - Path value of your cookie
- [same-site] - Same-site value of your cookie
Only the [value] from above is mandatory. To delete a cookie on the client, set the expiration date to a value in the past.