Title: Cookie Bug
Last modified: September 1, 2016

---

# Cookie Bug

 *  Resolved [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/)
 * Hello,
 * Me again with another issue. I’ve set up two boxes. One showing everywhere and
   one showing only on posts. However, if one of those two is dismissed, the cookie
   for both boxes is set.
 * Example:
    Visit [http://mydivision.net/](http://mydivision.net/) and wait 30 
   secs for the box to pop up. Then visit [http://mydivision.net/2016/08/the-division-sotg-update-1-4-im-oktober-ueberleben-dlc-kommt-spaeter-aussicht-auf-verbesserungen/](http://mydivision.net/2016/08/the-division-sotg-update-1-4-im-oktober-ueberleben-dlc-kommt-spaeter-aussicht-auf-verbesserungen/)
   and scroll down to the comments. The second one should appear (bottom left) but
   doesn’t as its cookie was set on the homepage already.
 * Please help!
 * //Nils
 * [https://wordpress.org/plugins/boxzilla/](https://wordpress.org/plugins/boxzilla/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7709900)
 * Okay, this is only happening when caching is enabled. I’m using WPFastestCache.
 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7709910)
 * Okay, I re-checked and it happens also when caching is disabled. Must be an issue
   with the plugin.
 * And only one way:
 * If the “everywhere” box is triggered and the cookie was set, the cookie for the“
   posts only” box is also set.
    But if I set the cookie for the “post only” box,
   the cookie for the “everywhere” box is not set.
 * Very strange!
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7709985)
 * Hi Jack,
 * That does sound like a bug in the plugin. I’m looking into this and we’ll push
   out an update with the fix once resolved.
 * Sorry for the hassle but thank you for the detailed report!
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7709987)
 * Hi Jack,
 * After looking into this a little more, I was actually not able to reproduce the
   issue and it seems it isn’t happening on your site either.
 * The “post only” box has a trigger method of “time on page” with 30 seconds as
   its value. For me, opening up the home page and then dismissing that box and 
   then opening up the “post only” page and staying on it for 30 seconds shows the
   box correctly.
 * Are you sure the cookie isn’t set from any of your earlier testing? You can test
   better by enabling “test mode” in the box settings so that you don’t run into
   this again.
 * Hope that helps. If not, let me know!
 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7709998)
 * Hey Danny,
 * Thanks for looking into this, but I can reproduce the wrong behavior on multile
   devices and using multiple browsers.
 * I did the following:
    Deleted all cookies of my site. Reloaded the home page 
   and waited for 30 seconds. Box 19281 (the centered, big one with the social icons)
   is showing up. I closed the box. Now there are two cookies set for box 19281 
   and 19287, whereas 19287 is the small, bottom left one which only appears on 
   single posts and was not even triggered yet.
 * And what is even more strange, the small one does not appear on my phone using
   Chrome. Even with all cookies cleared. Maybe it has something to do with the 
   condition to show on posttype “post” only? As this is the only difference to 
   my other boxes and they all work fine.
 * I’ll play around with that a little bit.
 * //Nils
 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7710008)
 * Okay, no matter what conditions I set for the small box (19287), its cookie is
   still set when the big box (19281) gets closed. 🙁
 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7710024)
 * So, another thing I noticed:
 * I set up a third box yesterday (19275) which only appears on this page, when 
   you scroll down almost completely: [http://mydivision.net/the-division-group-finder/](http://mydivision.net/the-division-group-finder/)
   
   But when the big box (19281) pops up and gets closed, it also sets the cookie
   for the third box like in the other case.
 * So it seems that the big box which can be triggered “everywhere” is overwriting
   things of the small boxes.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7710031)
 * Hi Nils,
 * Are you 100% sure that the cookie is being set or is it just that the other boxes
   are not showing? What are the names of the cookies being set?
 * Also, how are you closing the box? Are you clicking the X-icon or are you clicking
   the greyish overlay or pressing ESC?
 * Thanks in advance!
 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cookie-bug/#post-7710035)
 * Yes, 100% sure its the cookies, not just “not showing”.
 * But good point with the closing of the box. When I close the box using the X,
   only the cookie for the big box is set, not for the small one (19287).
 * But when I close the big box by clicking on the grey overlay around the box, 
   then both cookies are set.
 * Once again with some screenshots:
 * Case 1 – Using the X to close
    - I have deleted all Boxzilla cookies of my site. Just Google Analytics and 
      CookieConsent are still there: [http://puu.sh/qSydp/fc17392a9a.png](http://puu.sh/qSydp/fc17392a9a.png)
    - I reload my site on the home page and wait 30 secs for the big box (19281)
      to load:
       [http://puu.sh/qSxXZ/8b578608cc.jpg](http://puu.sh/qSxXZ/8b578608cc.jpg)
    - I dismiss the box by clicking the X.
    - I check the cookies again and only the cookie for the big one is set:
       [http://puu.sh/qSy80/9307d9b02b.png](http://puu.sh/qSy80/9307d9b02b.png)
 * Case 2 – Clicking the overlay to close the box
    - I have deleted all Boxzilla cookies again.
    - I have reloaded the home page and waited 30 secs.
    - I have closed the pop up by clicking on the overlay outside of the box.
    - Voilà, both cookies are set, also for the small one (19287):
       [http://puu.sh/qSylz/c1bd16bafb.png](http://puu.sh/qSylz/c1bd16bafb.png)
 * Case 3 – Using Escape to close the box
    - Same as in case 2 – both cookies are set.
 * It seems we have found the bug. 🙂
 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/cookie-bug/#post-8140322)
 * Any update on this?
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/cookie-bug/#post-8147934)
 * Hi Nils,
 * I am looking at this today, more than likely the fix will be included in this
   week’s release! 🙂
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/cookie-bug/#post-8148063)
 * Hi Nils,
 * This issue should be fixed in version 3.1.5 of Boxzilla, which was just released!
 * Thanks for your patience on this one, and the detailed reports. Sorry for not
   catching on to the bug earlier!
 *  Thread Starter [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * (@jackennilsen)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/cookie-bug/#post-8148883)
 * Hi Danny,
 * Super, thanks so much for the great support and fix. Glad I could help a bit.
 * All the best
    Nils

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Cookie Bug’ is closed to new replies.

 * ![](https://ps.w.org/boxzilla/assets/icon-256x256.png?rev=1414640)
 * [Boxzilla - WordPress Popup Builder](https://wordpress.org/plugins/boxzilla/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/boxzilla/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/boxzilla/)
 * [Active Topics](https://wordpress.org/support/plugin/boxzilla/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/boxzilla/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/boxzilla/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [jackennils](https://wordpress.org/support/users/jackennilsen/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/cookie-bug/#post-8148883)
 * Status: resolved