We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Add-Ons
default app icon

Cookie

By Packet Tide
Templating Utilities
Free

Description

Get and set cookies in your ExpressionEngine templates, matching your site’s cookie preferences 100%. ?

This plugin lets you easily get and set cookies in your ExpressionEngine templates. It automatically respects your ExpressionEngine’s cookie preferences so the prefix, domain, and flags are unified with the rest of the application cookies. Since the prefix is handled automatically, just refer to the cookie by its descriptive name, e.g. example_cookie instead of exp_example_cookie.

Get a cookie:

{exp:cookie:get name='ab_test'}

Set a cookie:

{exp:cookie:set name="recent_article" value="{entry_id}" expire="1209600"}

~Eat~ Delete a cookie:

{exp:cookie:delete name='ab_test'}
Information
Version 1.0.1
Last Update 4 years ago
Compatibility EE 6, 5, 4, 3
License MIT
Links
  • Documentation
  • Change Log
  • Support
Free
ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.