Viewing 2 replies - 1 through 2 (of 2 total)
  • The functions to set and test the auth cookies are in pluggable.php. This means that they can be replaced easily by a plugin. Feel free to use one to get the results you want.

    Thread Starter Fee

    (@wdfee)

    Hi Joy, thanks for your answer, but I think there’s a kind of misunderstanding. I’ll try to be more precise:
    I do not want to set any cookie.
    I do not want to change the behaviour of authentication cookies.
    I want to be able to let visitors surf on my sites without any cookies for privacy reasons.

    I’ve now continued some debugging on different sites and found the issue.

    The ‘wordpress_test_cookie’ is not set in pluggable.php.
    In wp-includes/default-constants.php this cookie is defined as TEST_COOKIE constant. Via this constant the cookie is set in wp-login.php.
    WordPress itself sets this cookie only when visiting the login page – exactly what I want. Of course, the cookie is set on other pages, too, if a login form is included in frontend.
    Additionally this cookie is set by a security plugin I use, but it seems to be gone with an update of this plugin now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Request: set wordpress_test_cookie only on login screen’ is closed to new replies.