Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 May 2012 at 08:41 UTC
Updated:
13 May 2012 at 23:47 UTC
I've been trying to create my own version for this, been running into issues with the page cache when turned on when setting the cookie.
How did you get round this issue?
Comments
Comment #1
Miszel commentedIt's difficult to say what problems you are experiencing without seeing your code. Are you setting your cookies using PHP or JavaScript? If you do that with PHP, it won't work with drupal page cache or Varnish because your logic will be bypassed.
Comment #2
david.riches commentedYeah i was setting it with php.. then came across page caching.
Yours i see seems to set it in the javascript. I have page caching turned on. the dropdown doesn't always appear on all pages. (before cookie is set.)
Have you experienced this?
Comment #3
Miszel commentedI am not sure what dropdown you are referring to...?
It seems to be working ok. I haven't experienced any problems. You can try the 6.x-1.x branch.
Comment #4
david.riches commentedYour version. Apologies
Right i think i have this working with page cache now. seems a bit jumpy the drop-down from the top after i select 'Yes i agree'. (i have to refresh the page to get the thankyou message.)
have you experienced this? I noticed on your demo you have it set to the bottom.
Cheers
Comment #5
Miszel commentedyes, I replicated the problem. I will fix it. Thanks for reporting.
Comment #6
david.riches commentedNo worries.
Thanks for a creating a module on this!
Comment #7
Miszel commentedComment #8
Miszel commentedFixed in 6.x-1.1
Comment #9
Miszel commentedComment #10
Miszel commented