OpenWGA 7.7 - TMLScript reference
WGA » WGA.CallMethod :
createCookie(name, value)
On object | WGA.Call |
Usage |
Creates a new completely initialized HTTP cookie, which is not yet assigned to the call. |
Description |
Creates a new completely initialized HTTP cookie, which is not yet assigned to the call. Use addCookie(Cookie) to do so and send it to the client. 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) The value of the cookie |
Return value |
The created Cookie object |
Allowed in script types |
|