Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
on d6 site we have Domain access module 6.x-2.12 enabled and EU cookies module 6.x-1.8.
We would like if the user has once agreed to accept cookies to not disturb him with the pop-up again when he switches to another subdomain.
Now if the user visits main.mysite.com the pop-up appears and he agrees with cookies. Then he goes to second.mysite.com and the pop-up appears again. How can we limit the pop-up to appears only once?
Please advice.
Thank you
Comment | File | Size | Author |
---|---|---|---|
#4 | eu-cookie-compliance-handling_for_subdomains-2007796-4.patch | 6.41 KB | VisualFox |
#3 | handling-for-subdomains-2007796-3.patch | 3.87 KB | jessehs |
#2 | eu-cookie-compliance-handling_for_subdomains-2007796-2.patch | 3.24 KB | marsdk |
Comments
Comment #1
Miszel CreditAttribution: Miszel commentedAt the moment, you cannot do that. Acceptance of cookies is recorded per language/domain.
Comment #2
marsdk CreditAttribution: marsdk commentedI have patched the module, so you can add the domain in your settings for the module to achieve that subdomain can use the same cookie.
Comment #3
jessehsNot sure why, but I was having trouble actually setting the cookie to be the cookie domain I configured. This patch adds a dependency: jQuery.cookie:
https://github.com/carhartl/jquery-cookie
Setting the cookie this way makes things work.
rolled against 6.x-1.8
Comment #4
VisualFox CreditAttribution: VisualFox commentedThat because you need to set the domain for the cookie for example
Comment #5
VisualFox CreditAttribution: VisualFox commentedmy patch was done against 7.x so I updated the issue to 7.x-1.x not sure that was the best practice. Code wise I didn't see any difference between 6.x and 7.x for this patch.
Comment #6
svenryen CreditAttribution: svenryen commentedThis was fixed in https://drupal.org/node/2190523