Tek Eye Logo

Tek Eye

Cookie Consent in ↓markdown↓ CMS

There are plenty of countries where the law requires a website to inform the visitor that web cookies are being used. The visitor can then decide whether or not to use the cookie enabled website. ↓markdown↓ CMS supports informing visitors about cookies using Silktide's Insites Cookie Consent.

A Small Cookie

What is a web cookie?

Most commercial and popular websites will use some form of web cookie. What is a web cookie? A web cookie is a temporary data store used by a website or a web page. It stores data that helps provided enchanced functionality to the visitor. Normally the data stored relates to the visitor and to the webpage or website itself. The popular browsers try to ensure that cookies do not present a problem to your computer or device. Good websites only store the minimum about of information required to provide full website functionality and ease future revisits. The bad websites put to much information in a cookie and over use them. The popular browsers allow cookies to be cleared through their settings options.

Web Adverts Use Cookies

Web sites that display advertisements, as Tek Eye does to cover hosting costs, will usually be using cookies. The web advertisment cookies are used to determine sites visited, the content on those sites and any adertisements that are clicked. This allows the advertisers to display adverts that they think you are more likely to click on.

Cookie Consent in ↓markdown↓ CMS

In a ↓markdown↓ CMS website the using cookies message is disabled by default. No cookies are generated by the ↓markdown↓ CMS code. If code is added that can generate cookies, e.g. adverts, then a cookie message can be enabled. The message is only shown to a visitor once. To view the default cookie message configuration see the Insites Cookie Consent download webpage.

Default cookie consent message

In ↓markdown↓ CMS the default cookie message code is stored in md_cookie.txt in the md directory in the installed location (usually the root public folder on the web server). To change the message, information link and colors go to the Insites Cookie Consent download webpage and alter the options. Copy the new code and replace the code in md-cookie.txt with the changed code. Most website hosting providers can support doing this through the control panel for your website. Here's how the message looks for this website:

The Tek Eye cookie consent message.

Enable or Disable the Cookie Consent Message

To enable the display of the cookie consent message in ↓markdown↓ CMS comment out the line with NO_COOKIE_MESSAGE in the settings file site-config.php. The settings file is created in the root install directory at installation (see configuring the Website Home Page for ↓markdown↓ CMS). To comment out the line add two slashes before the NO_COOKIE_MESSAGE, e.g. //"NO_COOKIE_MESSAGE" => "",.

To stop the cookie message again do the reverse. Uncomment (delete the two slashes before) the entry NO_COOKIE_MESSAGE.

See Also

For other articles on using ↓markdown↓ CMS see the post Build a Website from Scratch with ↓markdown↓ CMS.

Author:  Published:  Updated:  

markdown CMS Small Logo Icon ↓markdown↓ CMS is fast and simple. Build websites quickly and publish easily. For beginner to expert.



Articles on:

Android, HTML, ↓markdown↓ CMS, VPS, Computing, Computer History

Example Projects:

Android Examples, Android UI Examples