Cookie Consent Module in EE 2.5
Along with the EE 2.5 release, EllisLab also released a new first party module to help EE developers make their websites compliant with the EU cookie legislation.
What is the Cookie Consent Module?
The Cookie Consent Module gives developers the option of disabling all cookies unless the site visitor specifically opted into them. Without the Cookie Consent Module disabling all cookies was not possible.
Without consent for cookies, visitors are unable to register for a member account or log in to their account.
Visitors can grant consent to cookies in two ways (from the docs):
The module makes two means of granting consent available: a direct link that can be used anywhere and form field that can be included on login and registration pages. Removing permission to set cookies is also provided for via a link.
You can find code samples and the available variables in the Cookie Consent Module documentation.
Does the module come with ExpressionEngine?
No. It is a free download from the ExpressionEngine Add-on Repository.