The cookies operation integrates with Location & Jurisdiction for consent-aware cookie management.
Quick Start
Reading cookies — just useinput.cookies:
Configuration
Actions
GET - Read a Single Cookie
GET ALL - Read All Cookies
SET - Create or Update a Cookie
DELETE - Remove a Cookie
Trigger Compatibility
Cookies only work with HTTP-based triggers. For non-HTTP triggers, operations skip gracefully.| Trigger | Read (input.cookies) | Write (set/delete) |
|---|---|---|
| http | ✅ | ✅ |
| webhook | ✅ | ✅ |
| mcp | ✅ | ✅ |
| ❌ | ❌ (skips gracefully) | |
| queue | ❌ | ❌ (skips gracefully) |
| cron | ❌ | ❌ (skips gracefully) |
set and delete actions return:
Consent Integration
Thepurpose 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.
Cookie Purposes
| Purpose | Description | Consent Required |
|---|---|---|
essential | Sessions, auth, security | Never |
analytics | Usage tracking, metrics | GDPR, CCPA |
marketing | Ads, promotional content | GDPR, CCPA |
personalization | Recommendations, preferences | GDPR |
third_party | External service cookies | GDPR, CCPA |
Example: Analytics Cookie with Consent
Passing Consent from Client
Security Best Practices
Authentication Cookies
Always use secure settings for auth cookies:Session Cookies
SameSite Attribute Guide
| Value | Use Case | Cross-Site Behavior |
|---|---|---|
strict | Auth tokens, sensitive data | Never sent cross-site |
lax | Sessions, general use | Sent on top-level navigation |
none | Cross-site embeds, widgets | Always sent (requires secure: true) |
Examples
Session Management
Logout Flow
A/B Testing Cookie
Cookie Banner Preferences
Reading Cookies Without the Operation
For simple cookie reads, useinput.cookies directly without the cookies operation:
get and getAll actions are useful when you need:
- Conditional logic based on cookie existence
- Consistent output format
- Integration with other operation patterns

