WebXG WebRES config item 'Show Cookie Warning' switches on/off a pop-up to warn vistors about the use of cookies on the site, in accordance with European cookie legislation.

If the user has never been the website before, the popup appears to inform them about the site's cookie usage policy and provide information about opting out. It links to the page cookie_policy.html. Once the user click the link to read more or hide the pop-up, javascript sets a cookie so that the message does not appear next time. If they do not click, the pop-up will re-appear on every visit to any webRES page.

You are obliged to keep cookie_policy.html and any translations up to date if you add or change visitor tracking and information-gathering technologies. The text in the warning pop-up can be customised and translated in the cookie_warning translations section.


Cookie Domain

The Cookie Domain setting specifies what domains the pop-up cookie will apply to. If Cookie Domain is empty, the hostname part of the current page URL is used. The popup will only show up when the hostname matches the domain in the cookie. Set the Cookie Domain so that the popup stays hidden across subdomains.

For example, your site has www.example.com and uk.example.com. If a user visits www.example.com and dismisses the popup, then visits uk.example.com they will see the popup again because the hostname does not match. You would configure the Cookie Domain setting to be '.example.com' (without the quotes) to match both, and in fact any other '*.example.com'.

Due to the way cookies work, 'example.com' would not match 'www.example.com' and 'uk.example.com'. It has to start with a dot to imply a wildcard.