Disables wire frontend cookies until user consent to use required cookies.
ProcessWire module to disable the ProcessWire frontend cookie
wire until user gave his consent.
Module hooks before
page::render to show a cookie consent dialogue consenting the user allowing technical required cookies. User can accept or decline using technical required cookies. The module sets
$config->sessionAllow=true if a wire cookie already exists, the requested Url contains an admin path or the user gave consent using required cookies. This way frontend users can control if the ProcessWire cookie
wire will be set or not.
The consent cookie (nocowoco) is stored for 7 days if user gave consent in order to hide the cookie dialogue on subsequent visits unless the cookie is deleted by the user or the browser. If the user declined using cookies, the preference is stored in the cookie nocowoco till the end of the browser session. This ensures the cookie dialogue stays hidden for the actual session, but will show up again on subsequent website visits after the browser was closed.
Download latest module zip file via Download button of the ProcessWire module page or from Github release section and unzip it to your site/modules folder. Ensure the module folder is named NoCookieWithoutConsent. Alternatively you can clone the repository into your Processwire site/modules folder (recommended way for developers) via the following commands:
cd /your_processwire_folder/site/modules git clone https://github.com/cwsoft/NoCookieWithoutConsent.git
Once the module files are copied in place, login to your ProcessWire backend and reload the modules. Afterwards the NoCookieWithoutConsent module should show up in your backend ready to be installed by ProcessWire as usual. Once installed, log out of the backend, clear browser cookies and view a page to see the cookie consent dialogue in action.
You can style the Cookie Consent Dialogue by adapting the template file
By default this module ships with an English and German language file. If you want to add another language, please follow the translation steps described in the Helloworld module by Ryan Cramer.
Have fun cwsoft