Description
Cookie banner appears after every page refresh but I guess this is not how it should work, cookie acceptation should accept this information for that exact connect/page visit of user and do not show it again and again repeatly.
Situation example:
1. User visits the page
2. Cookie information banner with accept button appears
3. User click on "I accept", and information banner disappears
4. User clicks on link through that page or just refresh the page and the information banner appears again
Question
My questions is, is that desired function of this exact module, or is it just broken?
If this is desired function can you recommend me some other cookie compliance Drupal 7 module, or some solution how can I change the way it works?
Working on/with:
Drupal 7.57
simple_cookie_compliance-7.x-1.5
Comments
Comment #2
jeremycaldwell commentedI implemented this module on a couple sites and one works great and the other works as described in this ticket.
I'm about to dig deeper into this issue and see if I can figure out what is different between the two sites and what is causing the cookie to be set for one and not the other. If I figure it out I'll post my findings here.
Comment #3
jeremycaldwell commentedI was able to fix the issue we were experiencing where the popup would continue to appear even though the "OK" button had been clicked to close the popup.
The problem was the `clearfix` class on the module's template markup. The theme we are using had this bit of CSS which forced the display of the popup at all times.
Looking at the JS and CSS for the module I could see that it always prints the popup and uses JS to add a "display: block" to the div containing the popup if you haven't clicked the "OK" button. And once you click the "OK" button it removes that "display: block" and leaves it off so the popup is hidden.
We could have fixed the "clearfix" class in our theme to solve this issue but it's used elsewhere and is important for other aspects of the site so it was needed and we just modified the module's markup instead. We can probably do a theme override and throw this template in our theme's directory but this will do for now. Hope that helps!
Comment #4
Shweta Shelar commentedHi,
I am also using this module for cookies in my website but I am facing same problem and I am not able to resolve it. will you please suggest something?
Comment #5
summit commentedHi Jeremy,
Where did you put the css please in the theme?
I have the same problem, that the cookie banner with every refresh arises again.
greetings,