SetCookie
Overview
Sets the name and value of the specified session cookieSyntax
SetCookie(1, 2, 3, 4)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Session cookie name |
| 2 | string | Required | Session cookie value |
| 3 | datetime | Date and time value indicating cookie expiration | |
| 4 | Boolean | Indicates whether cookie works with only HTTPS connections |
Example
<script runat=server>
Platform.Response.SetCookie("cookieName","cookieValue","2015-12-31 140000.999",true);
</script>