OpenWGA 7.7 - TMLScript reference

WGA » WGA.Call
Method :

addCookie(name, value)
addCookie(cookie)

On object WGA.Call
Usage Adds a new cookie to the call, so it will be send to the client.
Description

Adds a new cookie to the call, so it will be send to the client.

This is a shortcut for calling createCookie(String, String) followed by addCookie(Cookie). The cookie is initialized according to what is documented on createCookie().

Parameters

Variant 1:

name (String)

The name of the cookie

value (String)

The Value of the cookie

Vaiant 2:

cookie (Cookie object)

A Cookie object to be added (typically retrieved via createCookie())

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events