• Problem with this function is that no admin rights works. Like updating posts or settings will redirect you to
    “The link you followed has expired.” (Cause for some reason your link expired in 1986 (Expires: Wed, 11 Jan 1984 05:00:00 GMT))
    Its not only on one site, I’ve had this problem on 4 site til now.
    Im lazy and don’t won’t to login to every site someone needs support on, so I just have an if else statement checking for my IP and then log me inn. But now I need to brute force login adding details to database, and that is annoying.
    Any body know a workaround or a fix?

    • This topic was modified 2 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You should also clear any existing auth cookies, and set the current user. This all must be done before any output has occurred. It’s possible a theme or plugin is interfering with proper operation.

    A complete workaround would be to build an app that does what you need done through the REST API. There are several possible API authentication methods possible. I recommend using application passwords.

Viewing 1 replies (of 1 total)
  • The topic ‘wp_set_auth_cookie is broken’ is closed to new replies.