• Dear WordPress community,

    I activated the checkbox “Show comments cookies opt-in checkbox, allowing comment author cookies to be set” in the backend of my WordPress installation. Not surprisingly, a checkbox labeled “Save my name, email, and website in this browser for the next time I comment” appeared in all comment forms on my website.

    To test this feature, I started an incognito session in Google Chrome and posted a comment. I did not check the checkbox. From my understanding, when the checkbox is unchecked, no cookies should be stored on the user’s computer. But WordPress did: In Google Chrome 72.0.3626.121 running on Fedora 28, 3 Cookies were created:

    View post on imgur.com

    However, the actual field values (name, email) were not preserved. So on the surface, the checkbox does it job. But I think it would be better if no cookies were created in this case.

    I could also reproduce this behavior in IE 11 running on Windows 7:

    View post on imgur.com

    I could not reproduce this behavior in Firefox 65.0 on Fedora 28:

    View post on imgur.com

    I could reproduce this behavior even in a clean installation of WordPress 5.1 with default settings.

    Did I misunderstand the intention of this opt-in checkbox, or is this a bug in WordPress?

    – Till

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Till,

    Thank you for your Question. We will try to replicate this issue and see if this happens.

    Or else we will also involve the WordPress Core Team to help us out.

    I will keep you updated on the same.

    Thanks.

    Hello tsc0,

    Sadly I’ve been unable to reproduce this with a clean install of 5.1 using TwentyNineteen.

    What theme do you have enabled btw? Are there any customizations to it? What language is your site set to? Do you have any plugins enabled?

    You understood the intention of the checkbox correctly, but I’m unable to reproduce the issue sadly so will need some additional information.

    Thanks

    Thread Starter tsc0

    (@tsc0)

    Hi Kartik,

    thank you for your efforts to reproduce this issue. I will provide you with some more information about my setup.

    I’m running Debian 9 with MySQL/MariaDB 10.1.37-MariaDB-0+deb9u1, PHP 7.0.33-0+deb9u1 and Apache/2.4.25 (Debian). I installed all these from official Debian repositories.

    I could reproduce the issue on a clean WordPress 5.1 installation. I installed it from https://wordpress.org/latest.tar.gz (SHA256: debd29c267021e34f59c31b210dd82e9c476fa9f1abdc62b5fdd1d50078fed4a). I set the language to English.

    Then, without changing any settings, without visiting the backend at all and therefore using the default theme (2019), I posted a comment to the defualt “Hello World” article. I left the cookie checkbox unchecked, but could observe the 3 cookies I described earlier.

    You can find this temporary installation here: http://wpcookietest.return-false.de/ Feel free to post some comments and try it out.

    I could also reproduce it using Browserling (Win 7, Chrome 72), maybe you can try that, too:

    https://www.browserling.com/browse/win/7/chrome/72/http%3A%2F%2Fwpcookietest.return-false.de

    Please let me know if you need any additional information.

    – Till

    Thread Starter tsc0

    (@tsc0)

    I just had a closer look at the transferred cookies. They are set to expire immediately, so I think this is done to delete any existing cookies. Chrome lists them anyway, so I was mistaken by the representation in Chrome’s UI. Since these are no real cookies that are stored for a longer time, I think the mystery is solved.

    – Till

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comment Form/Cookie Opt-In: Cookies are always created in some browsers’ is closed to new replies.