OpenWGA 7.9 - TMLScript reference
WGA » WGA.CallMethod :
createCookie(name[, value])
On object | WGA.Call |
Usage |
Creates a new HTTP cookie, which is not yet assigned to the HTTP-Response object. |
Description |
Creates a new completely initialized HTTP Cookie, which is not yet assigned to the HTTP response. In versions < 7.8.1 use addCookie() to send the cookie. From version 7.8.1 on we advice to send the cookie via Cookie.write(). The cookie is initialized with path (the OpenWGA context path), type/maxage (transient), domain (either request host or host from configured server base url) and security flag (true if the current call is HTTPS). |
Parameters |
name (String) The name of the cookie value (String - optional) The value of the cookie |
Return value |
The created Cookie object |
Allowed in script types |
|