Link

Syntax

SetCookie(cookie_value)

Description

Use this method to set the cookie value of the JSON Node.

Parameters

Name Description
cookie_value Specifies the cookie value of the JSON Node as a Cookie object.

Returns

None.

Example

Local Cookie &oCookie = %Response.CreateCookie("TheCookie");
&oCookie.Value = "TheCookieVal";
   
Local PSM_JSON:Node &oNode = create PSM_JSON:Node();
   
&oNode.SetCookie(&oCookie);