WordPress.org

Ready to get started?Download WordPress

Forums

UK Cookie Consent
Cookie expiry/duration (4 posts)

  1. mabuzzer
    Member
    Posted 1 year ago #

    Hi,

    I've just added the plugin to my site, and am pleased to say it's all working a treat.

    It looks to me like the cookie that is set to record acceptance only lasts 30 days, which presumably means that regular visitors will have to acknowledge cookies every 30 days?

    Obviously I can change this to any value I like, but I wonder if it would be worth making it a configurable option for less techie site owners?

    Thanks for saving me the effort of doing this myself...

    http://wordpress.org/extend/plugins/uk-cookie-consent/

  2. Catapult
    Member
    Plugin Author

    Posted 1 year ago #

    Hi

    Thanks for the feedback. Yes, that's a good idea. Will add an option to configure the duration to the next release.

  3. jetcreative
    Member
    Posted 1 year ago #

    Thanks mabuzzer for pointing this out. I completely agree, no need to push off users with the reappearing banner. I've set mine to three years time! In theory there is no limit for seting the cookie expiry, although users tend to clean cookies, browsers will do it automatically if set by user or is designed to clean them when they become too old. But still, 3 years time is surely enough.

    For less techies here's the place to set the longer time (correct me if i'm wrong anywhere):

    1. Go to /wp-content/plugins/uk-cookie-consent/
    2. Open "uk-cookie-consent.php" with your favourite code editor. On mac you can use free Wrangler app or similar, on Windows, well... Google it, I'm sure you'll find something.
    3. Edit line 190 which is: days = 30; or use the search for this string and change to any numbers of days you would like. Done. Time to get real cookies, and tea.

    Enjoy, and Catapult, thanks a million for providing this plugin. I love the look it's got. It's really delicate and small, doesn't interfere with design and works great with responsive theme. You're a star!

    --
    Mike

  4. Catapult
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the feedback. I'll look at an option to set expiry time for the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.