• Resolved munikho

    (@munikho)


    It seems that in my case each time a user logs in with magic login, the user gets logged out again after they close their browser. It sets session cookies, and not cookies that expire after a certain time. This isn’t the case with the normal login when checking the ‘remember me’ check.

    I couldn’t find the reason why, so wondering if it’s a bug, or something specific with my setup.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @munikho,

    Magic Login sets the auth cookie with the remember flag set to true (using wp_set_auth_cookie). It’s possible that other plugins are modifying the cookie TTL using the auth_cookie_expiration filter.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @munikho,

    I couldn’t reproduce the issue you’re experiencing. It appears to be related to your specific setup, so I’m marking it as resolved for now.

    Thread Starter munikho

    (@munikho)

    I’m sorry for not responding sooner @m_uysl. I checked again and it’s indeed specific to my setup. In my case I had a 2FA login plugin installed which was enabled for admin users, and this was setting the cookie TTL to the session. Which is probably the most secure solution.

    For normal users the ‘remember’ flag is kept and login sessions are persistent.

    Thanks for the reply!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.