Re: Guidance on storing Klaro cookie-consent decisions in OpenCms database (Master’s thesis)
Michael Emmerich via opencms-dev <[email protected]> Wed, 10 Sep 2025 11:18:25 +0200
| Newsgroups | gmane.comp.cms.opencms.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============8861228450988695155==
Content-Type: multipart/alternative;
boundary="------------e3GxcAlfC898nSqc0KUu0xiZ"
Content-Language: en-US
This is a multi-part message in MIME format.
--------------e3GxcAlfC898nSqc0KUu0xiZ
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Hello Zoya,
I do not know Klaro, but worked with other cookie consent tools in
OpenCms before (commercial and self developed ones).
Could you please tell, why you want to persist user consent decisions in
the OpenCms backend database?
Usually, cookie consent tools store their settings in a cookie. Which
makes sense, as usually users who visit the website could not be
identified to access the stored data again.
This would be different if you have a personalized website where users
have to log in (e.g. extranets). Is this what you are implementing?
Or are you talking of keeping track of all user actions in the cookie
consent tool for documentation?
Wold help if you could explain our use case a bit more.
Kind regards,
Michael
Am 09.09.25 um 11:05 schrieb zoya asadi via opencms-dev:
>
> Dear OpenCms team,
>
> I’m a Master’s student working on my thesis at the University of
> Passau. As part of my project, I’m building a small website on OpenCms
> and integrating the Klaro consent manager to handle cookie consent. I
> understand the site normally uses Alkacon Software’s (Mercury) privacy
> banner, but for my thesis I’m replacing it with Klaro.
>
> My goal is to persist each user’s 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
>
>
--
Michael Emmerich
-------------------
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com
http://www.opencms.org
--------------e3GxcAlfC898nSqc0KUu0xiZ
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Zoya,</p>
<p>I do not know Klaro, but worked with other cookie consent tools
in OpenCms before (commercial and self developed ones).</p>
<p>Could you please tell, why you want to persist user consent
decisions in the OpenCms backend database?</p>
<p>Usually, cookie consent tools store their settings in a cookie.
Which makes sense, as usually users who visit the website could
not be identified to access the stored data again.</p>
<p>This would be different if you have a personalized website where
users have to log in (e.g. extranets). Is this what you are
implementing?</p>
<p>Or are you talking of keeping track of all user actions in the
cookie consent tool for documentation?</p>
<p>Wold help if you could explain our use case a bit more.</p>
<p><br>
</p>
<p>Kind regards,</p>
<p>Michael</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 09.09.25 um 11:05 schrieb zoya asadi
via opencms-dev:<br>
</div>
<blockquote type="cite"
cite="mid:[email protected]">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p class="MsoNormal"
style="margin: 0cm; font-size: medium; font-family: Aptos, sans-serif;">Dear
OpenCms team,<o:p></o:p></p>
<p class="MsoNormal"
style="margin: 0cm; font-size: medium; font-family: Aptos, sans-serif;">I’m
a Master’s student working on my thesis at the University of
Passau. As part of my project, I’m building a small website on
OpenCms and integrating the Klaro consent manager to handle
cookie consent. I understand the site normally uses Alkacon
Software’s (Mercury) privacy banner, but for my thesis I’m
replacing it with Klaro.<o:p></o:p></p>
<p class="MsoNormal"
style="margin: 0cm; font-size: medium; font-family: Aptos, sans-serif;">My
goal is to persist each user’s 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="MsoNormal"
style="margin: 0cm; font-size: medium; font-family: Aptos, sans-serif;">Thank
you!<o:p></o:p></p>
<p class="MsoNormal"
style="margin: 0cm; font-size: medium; font-family: Aptos, sans-serif;">Best
regards,<o:p></o:p></p>
<p class="MsoNormal"
style="margin: 0cm; font-size: medium; font-family: Aptos, sans-serif;">Zoya
Asadi<o:p></o:p></p>
<p class="MsoNormal"
style="margin: 0cm; font-size: medium; font-family: Aptos, sans-serif;">M.Sc.
student, University of Passau</p>
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
Michael Emmerich
-------------------
Alkacon Software GmbH & Co. KG - The OpenCms Experts
<a class="moz-txt-link-freetext" href="http://www.alkacon.com">http://www.alkacon.com</a>
<a class="moz-txt-link-freetext" href="http://www.opencms.org">http://www.opencms.org</a>
</pre>
</body>
</html>
--------------e3GxcAlfC898nSqc0KUu0xiZ--
--===============8861228450988695155==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGhpcyBtYWls
IGlzIHNlbnQgdG8geW91IGZyb20gdGhlIG9wZW5jbXMtZGV2IG1haWxpbmcgbGlzdApUbyBjaGFu
Z2UgeW91ciBsaXN0IG9wdGlvbnMsIG9yIHRvIHVuc3Vic2NyaWJlIGZyb20gdGhlIGxpc3QsIHBs
ZWFzZSB2aXNpdApodHRwczovL2xpc3RzLm9wZW5jbXMub3JnL21haWxtYW4vbGlzdGluZm8vb3Bl
bmNtcy1kZXYKCgoK
--===============8861228450988695155==--