Cookies

screenshot of Cookies

DEPRECATED Secure Cookies for Twig Templates in Craft CMS

Overview

The Cookies plugin for Craft CMS is a straightforward and efficient solution for managing cookies within your Craft templates. Although it's a legacy plugin designed for Craft CMS 2.x and is no longer officially supported, it remains fully functional and serves users looking for reliable cookie management. Inspired by the Lj_cookies plugin, it offers secure cookie functionality and integrates seamlessly with the craft->security framework. Users can continue to utilize this plugin or even fork it to tailor it for their specific needs.

Despite its deprecated status, the plugin still provides essential features that enhance the way developers handle cookie data in Craft CMS. This combination of functionality and the ability to customize makes it a useful tool for those who wish to manage cookies without extensive overhead or complexity.

Features

  • Secure Cookie Management: Utilizes the craft->security framework to encrypt and validate cookie contents, ensuring data remains secure during transmissions.
  • Easy Installation: Supports both manual installation and Git cloning, making it easy to add to your Craft CMS environment.
  • TWIG Integration: Offers dedicated Twig filters and functions, simplifying setting and getting cookie values directly in templates.
  • Legacy Support: While deprecated, it can still be used as-is or forked for needed updates and enhancements for legacy projects.
  • Flexible Parameters: Most parameters for setting cookies are optional, providing developers with flexibility in cookie management.
  • Comprehensive Cookie Deletion: Includes multiple methods for deleting cookies efficiently, catering to different use cases as required.
  • Craft Compatibility: Designed specifically for Craft CMS, ensuring seamless integration and optimal performance within the CMS ecosystem.