Allow accepting all cookies in consent banner and management component

Create cookie consent "all" when accept all cookies

Set cookie duration to 365 days based on the AEPD's cookie usage guidelines.

Note from the document: "Cookies with a duration of up to 24 months are
considered acceptable as long as they are periodically updated."
Reference: https://www.aepd.es/guias/guia-cookies.pdf
This commit is contained in:
taitus
2024-12-09 16:07:26 +01:00
parent 6753505e7c
commit dc54fda71b
11 changed files with 86 additions and 0 deletions

View File

@@ -6,6 +6,11 @@
$("#cookies_consent_management").foundation("close");
},
initialize: function() {
$(".accept-all-cookies").on("click", function() {
App.Cookies.saveCookie("cookies_consent", "all", 365);
App.CookiesConsent.hide();
});
$(".accept-essential-cookies").on("click", function() {
App.Cookies.saveCookie("cookies_consent", "essential", 365);
App.CookiesConsent.hide();