Creates a cookie.
| Name | Type | Description | Mode |
|---|---|---|---|
| name | String | the cookie name. | in |
| value | String | the cookie value. | in |
| domain | String | the host this cookie will be sent to. | in |
| path | String | the path prefix for which this cookie will be sent. | in |
| expires | Time | the time this cookie expires, null if at end of session. | in |
| secure | Bool | if true this cookie will only be over secure connections. | in |