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'}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.