OpenWGA 7.9 - TMLScript reference

Method :

setValue(value[, encode])

On object Cookie
Usage Sets the value of a cookie and optionally encodes it.

Since version 7.8.1 this method can be called with an optional encoder to encode the value

Possible encoders currently are

  • "hex" to convert the value to a hex string
  • "base64" to convert the value as base46 string

value (String)

The value to be set

encode (String - optional) - since 7.8.1

Encodes the value with the specified encoder

Return value Since 7.8.1 this methods returns the Cookie object for further method chaining.
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • Content type events
.setValue("some-value", "base64")