Blocks Deprecated
Deprecated: use the web blocks for new pages This block belongs to state pages and UI components. Existing pages keep running, but new pages should use the web blocks. See Web Pages and the migration guide.

set cookie

This block is part of the state ui group and was last modified in core v10.4.28.

set cookie v10.4.28

In pins 4 + flow
  • flow
  • name value required
  • value value required
  • path value

    Path to be used as cookie.

    Default /

  • duration number

    Seconds this cookie should be alive.

    Default 3600

Out pins 0 + flow
  • flow

A typical wiring for set cookie: a function trigger starts the flow; value feeds the name pin; value feeds the value pin; the flow out pin feeds debug.

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

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v10.4.28.


Back to state ui Return to the main group to view all sub-groups Back to state actions Return to the group to view all blocks within this group