Syntax

AddCookie(cookie)

Description

Use this method to add a Cookie object to the JSON Array.

Parameters

Name Description
cookie Specifies the cookie to add to the JSON Array as a Cookie object.

Returns

None.

Example

Local Cookie &oCookie = %Response.CreateCookie("MyCookie");
&oCookie.Value = "MyCookeVal";
   
Local PSM_JSON:Array &oArray = create PSM_JSON:Array();
   
&oArray.AddCookie(&oCookie);