Set-Cookie causes Wrong username or password at first login attempt
-
If .htaccess has any one of the following specified in WordPress 5.3.2 using WPS Hide Login 1.5.5 plugin:
Header set Set-Cookie HttpOnly;Secure
Header set Set-Cookie HttpOnly;Secure;SameSite=Strict
Header set Set-Cookie HttpOnly;Secure;SameSite=None
Header set Set-Cookie HttpOnlyWhen I enter the correct username and correct password I get:
Wrong username or password.Then I just press enter and I am taken to the WP Dashboard (or I can reenter the same username and same password a 2nd time to get to the WP Dashboard).
If I remove the Set-Cookie from .htaccess the login works the first time.
(I have set a Login URL myself after the initial install. I have uninstalled this plugin and reinstalled with the same result. No issues with the plugin disabled, or with no Set-Cookie in htaccess)
Note: You must Log Out WordPress and close the browser completely to recreate the issue at the next WP login.
- The topic ‘Set-Cookie causes Wrong username or password at first login attempt’ is closed to new replies.