Guidance on storing Klaro cookie-consent decisions in OpenCms database (Master’s thesis)

zoya asadi via opencms-dev <[email protected]> Tue, 9 Sep 2025 11:05:55 +0200
Newsgroups gmane.comp.cms.opencms.devel
Message-ID <[email protected]>
--===============6153362461409577018==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_9A4899BC-A4C5-440E-9D05-788A93064A25"


--Apple-Mail=_9A4899BC-A4C5-440E-9D05-788A93064A25
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Dear OpenCms team,
I=E2=80=99m a Master=E2=80=99s student working on my thesis at the =
University of Passau. As part of my project, I=E2=80=99m building a =
small website on OpenCms and integrating the Klaro consent manager to =
handle cookie consent. I understand the site normally uses Alkacon =
Software=E2=80=99s (Mercury) privacy banner, but for my thesis I=E2=80=99m=
 replacing it with Klaro.
My goal is to persist each user=E2=80=99s consent decisions in the =
OpenCms-backed database (e.g., MySQL) so the backend can read them and =
enforce preferences server-side. What is the simplest recommended way to =
do this? A short example or a link to documentation would be great.
Thank you!
Best regards,
Zoya Asadi
M.Sc. student, University of Passau=

--Apple-Mail=_9A4899BC-A4C5-440E-9D05-788A93064A25
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><p =
class=3D"MsoNormal" style=3D"margin: 0cm; font-size: medium; =
font-family: Aptos, sans-serif;">Dear OpenCms team,<o:p></o:p></p><p =
class=3D"MsoNormal" style=3D"margin: 0cm; font-size: medium; =
font-family: Aptos, sans-serif;">I=E2=80=99m a Master=E2=80=99s student =
working on my thesis at the University of Passau. As part of my project, =
I=E2=80=99m building a small website on OpenCms and integrating the =
Klaro consent manager to handle cookie consent. I understand the site =
normally uses Alkacon Software=E2=80=99s (Mercury) privacy banner, but =
for my thesis I=E2=80=99m replacing it with Klaro.<o:p></o:p></p><p =
class=3D"MsoNormal" style=3D"margin: 0cm; font-size: medium; =
font-family: Aptos, sans-serif;">My goal is to persist each user=E2=80=99s=
 consent decisions in the OpenCms-backed database (e.g., MySQL) so the =
backend can read them and enforce preferences server-side. What is the =
simplest recommended way to do this? A short example or a link to =
documentation would be great.<o:p></o:p></p><p class=3D"MsoNormal" =
style=3D"margin: 0cm; font-size: medium; font-family: Aptos, =
sans-serif;">Thank you!<o:p></o:p></p><p class=3D"MsoNormal" =
style=3D"margin: 0cm; font-size: medium; font-family: Aptos, =
sans-serif;">Best regards,<o:p></o:p></p><p class=3D"MsoNormal" =
style=3D"margin: 0cm; font-size: medium; font-family: Aptos, =
sans-serif;">Zoya Asadi<o:p></o:p></p><p class=3D"MsoNormal" =
style=3D"margin: 0cm; font-size: medium; font-family: Aptos, =
sans-serif;">M.Sc. student, University of Passau</p></body></html>=

--Apple-Mail=_9A4899BC-A4C5-440E-9D05-788A93064A25--

--===============6153362461409577018==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGhpcyBtYWls
IGlzIHNlbnQgdG8geW91IGZyb20gdGhlIG9wZW5jbXMtZGV2IG1haWxpbmcgbGlzdApUbyBjaGFu
Z2UgeW91ciBsaXN0IG9wdGlvbnMsIG9yIHRvIHVuc3Vic2NyaWJlIGZyb20gdGhlIGxpc3QsIHBs
ZWFzZSB2aXNpdApodHRwczovL2xpc3RzLm9wZW5jbXMub3JnL21haWxtYW4vbGlzdGluZm8vb3Bl
bmNtcy1kZXYKCgoK

--===============6153362461409577018==--