MapbenderLogo
3.3
  • English
    • Installation
    • Mapbender Quickstart: First steps with Mapbender
    • Functions
      • Base functions
      • Search
      • Export / Print
      • Editing
      • Share
      • Backend
        • Cookie Banner
        • Layerset
        • Responsive Design
        • Sources
        • FOMUserBundle - Users and Security
      • Other
    • Customization / Tips and tricks
    • FAQ - Frequently Asked Questions
    • Architecture
    • Development
    • Version history
  • Deutsch
Mapbender
  • Welcome to the Mapbender documentation
  • Functions
  • Backend
  • Cookie Banner
  • Edit on GitHub

Cookie Banner¶

Applications support displaying a cookie banner which is customized via the Mapbender configuration file parameters.yml. We use the code from Cookie Consent without making an additional call to the internet.

The banner is displayed in any application on the first run.

../../../_images/cookiebanner1.png

After this banner is dismissed it doesn’t appear again until you have deleted the cookie in your web browser. Mapbender depends on cookies and stores its PHP-session there.

Configuration¶

Configuration takes place in the parameters.yml file under app/config/parameters.yml and accounts for the whole Mapbender instance. Please add the parameter mapbender.cookieconsent: with the value true or false. If the parameter is missing or the value is set to false, the banner will not be displayed in your applications.

Tip

After changing these parameters you have to clean the contents of the cache-directory (app/cache/\*).

Example:

#Mapbender Cookie Consent Message
mapbender.cookieconsent: true
Previous Next

© Copyright 2023, The Mapbender Team.

Built with Sphinx using a theme provided by Read the Docs.