Skip to main content
Manage HTTP cookies with built-in consent integration. Read cookies from requests, set cookies on responses, and automatically respect GDPR/CCPA consent requirements.
The cookies operation integrates with Location & Jurisdiction for consent-aware cookie management.

Quick Start

Reading cookies — just use input.cookies:
Setting cookies — use the cookies operation:

Configuration

Actions

Output:

GET ALL - Read All Cookies

Output:
Output:
Output:

Trigger Compatibility

Cookies only work with HTTP-based triggers. For non-HTTP triggers, operations skip gracefully. When a non-HTTP trigger is used, set and delete actions return:
The purpose field integrates with Conductor’s jurisdiction detection. If a purpose requires consent in the user’s region, the cookie is only set if consent is granted.
If the user is in a GDPR region (EU) and hasn’t consented to analytics, the result will be:
The client passes consent in the request body:

Security Best Practices

Authentication Cookies

Always use secure settings for auth cookies:

Session Cookies

SameSite Attribute Guide

Examples

Session Management

Logout Flow

Reading Cookies Without the Operation

For simple cookie reads, use input.cookies directly without the cookies operation:
The cookies operation’s get and getAll actions are useful when you need:
  • Conditional logic based on cookie existence
  • Consistent output format
  • Integration with other operation patterns

Error Handling

Cookie operations are designed to fail gracefully:
  • storage - Persist session data
  • html - Render pages with cookie-based personalization
  • http - Make authenticated API calls