cookie

This block is part of the http connection group and was last modified in core v12.0.4.

cookie v12.0.4

Returns the cookie with the given name.

In pins 2
  • connection required
    httpconnection
  • name required
    value

    The name of the cookie

Out pins 1
  • value
    value

    The value of the cookie

Outputs the value of the cookie named ui-<name>: the name pin is automatically prefixed with "ui-", so name=session reads the cookie ui-session from the request Cookie header. Emits nil when the cookie is absent or the connection is unwired.

A typical wiring for cookie: value feeds the name pin; the value out pin feeds convert to uppercase.

Studio canvas example for the cookie block: typical wiring for cookie.

Version history

Introduced in v12.0.4.


Back to http connection Return to the main group to view all sub-groups Back to http Return to the group to view all blocks within this group