OpenWGA 7.7 - TMLScript reference
WGA » WGA.CallMethod :
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 |
|