close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

new EU cookie rule question

Thread began 5/29/2012 7:18 am by j.dobres416289 | Last modified 6/14/2012 1:07 pm by j.dobres416289 | 2499 views | 8 replies

Steve E

Hi Jonathon
I recently had to address this accross multiple websites, I think you will find the law only applies to 3rd party cookies, the cookies you are refering to are 1st party cookies i.e. created by your website and therefore are essential to the running of your site and are not covered by the law.
The solution you mention is one that I am using, if you have any 3rd party cookies, simply add the scripts for them within the php code if else statments, these could be anything from Google Analytics, +1's or Facebook likes etc.

EXAMPLE OF HOW I COMPLY

<script type="text/javascript">
var z = jQuery.noConflict();
z(document).ready( function () {
z.ws.jconsent({
displaySettingsSelector: '.displayCookieSettings',
moreInfo: 'Please see our <a href="http://YOUR WEBSITE/privacypolicy.php">Privacy Policy</a>',
geolocate: true
});
});
</script>
<?php
if ((isset($_COOKIE['wsjconsent_consent'])) && ($_COOKIE['wsjconsent_consent'] == true)) {
//We are allowed to present the feature that requires cookies
require_once ("js/analytics.js");
} else {
//We are not allowed to present the feature that requires cookies
// Tell the user that they are getting a less-than-perfect experience?
echo '<p style="background-color:#333333; color:#ffffff; padding:5px; text-align:center; font-family:Arial, Helvetica, sans-serif; text-transform:uppercase; font-size:10px; border:1px solid #ff0000;">3 <sup>rd</sup> party cookies are disabled !</p>';
}
?>

If you notice the cookies notice will not display if you are outside the EU, also it will display a message that notifies the user that they have disabled the 3rd party cookies.

It works very well and I strongly recomend it, you can remove the link by purchacing a licence for £25.

Hope this helps.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...