SetCookie

Overview

Sets the name and value of the specified session cookie

Syntax

SetCookie(1, 2, 3, 4)

Function Properties

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>
Last Updated: Jun 8, 2021