Title: Cache/Cookie Problem
Last modified: July 25, 2018

---

# Cache/Cookie Problem

 *  [joaogodinho](https://wordpress.org/support/users/joaogodinho/)
 * (@joaogodinho)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cache-cookie-problem/)
 * Hi again!
    Sometimes when I go to my website and the age gate appears, when I
   click Yes nothing happens. I have to clean my cache and cookies and try again.
   This happens sometimes in others computers and I don’t know why this happens 
   because isn’t something constant. This is something important because it will
   be frustrating for the visitors that will not know how to fix and enter the website.
   Can you help me find the problem? By the way, the cookie lasts for one day? I
   would like to change for a week or another period without have the checkbox “
   remember me”.
 * Thank you!

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

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cache-cookie-problem/#post-10542998)
 * Hi [@joaogodinho](https://wordpress.org/support/users/joaogodinho/),
 * Sorry for the slow reply, it’s been crazy busy!
 * If you’re using caching make sure you use the Javascript version in the Advanced
   tab of the settings.
    If you’re already doing that, where are you hosting your
   site? I’ve seen issues with WPEngine where they have to whitelist cookies. You
   can see the info on this thread: [https://wordpress.org/support/topic/age-gate-shows-on-every-page/](https://wordpress.org/support/topic/age-gate-shows-on-every-page/)
 * For the cookie, it lasts for the session rather than a particular time so expires
   when the user closes the browser. I can look at some point at adding an option
   for a longer time.
 * Thanks
    Phil
 *  Thread Starter [joaogodinho](https://wordpress.org/support/users/joaogodinho/)
 * (@joaogodinho)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cache-cookie-problem/#post-10562871)
 * I wasn’t using the javascript version, let’s see if this don’t happens again.
   Thank you! 🙂
 * About the cookie, I’m not sure about the best length option. Maybe it is the 
   best, but a option to set this would be a great improve for the plugin I think.
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cache-cookie-problem/#post-10564057)
 * Hi [@joaogodinho](https://wordpress.org/support/users/joaogodinho/),
 * Are you comfortable with using filters? I think that might be the way I go for
   the cookie length rather than an option just to keep the options as simple as
   possible!
 * Thanks
    Phil

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

The topic ‘Cache/Cookie Problem’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Phil](https://wordpress.org/support/users/philsbury/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/cache-cookie-problem/#post-10564057)
 * Status: not resolved