Create WordPress_test_cookie only on login screen

Did you not read to the end of the post?

Test Cookie is only set by wp-login.php so is only set on a page with a login form, if you don’t have a login form on your front end then the cookie is not set ( by standard core WP ).

I have just double checked the OP comment and confirm that is the only place.

Thread Starter
pquirk

(@pquirk)

Hi Alan,
thanks for your reply.
I had tested with a browser where I had previously visited the login page, so the cookie was present and open.
I cleared cookies and tried again, not visiting the login page and confirm no cookie was created.
Apologies for creating a spurious post.

  • This reply was modified 1 day, 18 hours ago by pquirk.

No problem. No need to apologise 🙂



Source link