WordPress: wp-admin returns to login screen after entering password
Password is accepted, but after a while the user sees the login form again.
How to identify the source of the problem
Check session cookies, HTTPS and the divergence of Site URL and WordPress URL values.
Check the bug log, recent plugin changes and the environment version on the site test copy.
Repair steps
Unify domain addresses and cookie settings and remove conflicting proxy rule.
How to Test Solution
Logging keeps the session on the right domain without a loop.
Security and restrictions
Make a backup before you migrate or update PHP. Do not enter access data in untrusted forms.