Select to view content in your preferred language

Modify cookie consent after submission

452
4
Jump to solution
01-27-2026 08:08 AM
Labels (1)
MappyIan
Frequent Contributor

We're in the process of building an app that will be public-facing.  We're in the UK so have to get consent to store cookies.  We've enabled the cookie banner in the 'privacy and security' section of ExB:

MappyIan_4-1769529261010.png

...and configured the cookie consent window as follows:

MappyIan_2-1769529156985.png

This all works fine.  When users press either the 'accept' or 'decline' buttons the cookie consent window disappears.  In the settings section, if we press the 'renew now' button, anyone who has previously accepted or declined cookies will see the cookie consent window again and will have to accept/decline again.  This is all working as expected and as per the documentation from Esri.

The problem we have is what happens if a user accepts cookies initially, then subsequently change their mind?  There is no way for a user to make the cookie consent window appear again.  Granted I could enable the 'refresh consent periodically' checkbox in the settings and set it to refresh every day/week/month/whatever.  But that's clunky and would annoy anyone that hadn't changed their mind over the use of cookies.

In every other site I've looked at, users are prompted to make a choice about cookies, but they always have the option to go back and change their mind.  This is even the case on the main esriuk.com website and on external sites like bbc.co.uk etc. etc.

Don't get me started on consistency but in other Esri products, such as StoryMaps and Hub, the cookie settings are way more comprehensive and users can change their mind at any point.  In ExB there doesn't seem to be any way for a user to trigger the cookie consent popup to appear once it has been dismissed.

The cookie consent window doesn't appear in the list of windows (or pages) in ExB and isn't available to trigger as an action.  Does anyone know a workaround for this?  Has anyone figured out how a user can withdraw consent for cookies having previously given permission (or vice versa) without having to use the 'renew now' or 'refresh consent periodically' options?  This seems like an oversight on Esri's behalf.

 

0 Kudos
1 Solution

Accepted Solutions
ShengdiZhang
Esri Regular Contributor

Hi @MappyIan ,

You can reopen the cookie consent window using a button widget.

In the set link dropdown list, there is an option called "Cookie Banner":

ShengdiZhang_0-1770019898328.png

Thanks,

Shengdi

View solution in original post

4 Replies
JeffreyThompson2
MVP Frequent Contributor

I see your point. This is something of a design oversight. However, if a end-user wanted to change their mind on cookies, they should be able to by...clearing their cookies. This should be data stored on one of those "necessary cookies", so clearing them should return the banner.

GIS Developer
City of Arlington, Texas
0 Kudos
MappyIan
Frequent Contributor

Thanks @JeffreyThompson2, I'm fully aware that clearing your cookies would cause the prompt to display again.  Just bemused why this functionality wasn't built in to the system originally, and more bemused why every product created by Esri has a different cookie consent solution.  The lack of consistency drives me up the wall.

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @MappyIan ,

You can reopen the cookie consent window using a button widget.

In the set link dropdown list, there is an option called "Cookie Banner":

ShengdiZhang_0-1770019898328.png

Thanks,

Shengdi

MappyIan
Frequent Contributor

Perfect, thanks @ShengdiZhang, that's just what I was looking for.

0 Kudos