[resolved] Login not persistent on Mobile Safari (2 posts)

  1. MuViMoTV
    Posted 3 years ago #


    I've installed and set up SocialAuth-WordPress and it's working great on the desktop browser.

    Wether I login using wordpress or a social network, it's going through and if i close the browser and reopen it, the user is still logged in.

    On iOS though, it's not the case, if I access my website with mobile Safari, i can access without any trouble as well but if I close safari completely and then reopen it then i have to login all over again. This only happens with the social login though. If i login with the wordpress system then the login is peristent. Not with any of the social logins.

    Any idea where this could be coming from and how to sort it out?

    Thanks a lot!


  2. MuViMoTV
    Posted 3 years ago #

    Well after a bit of investigation, I found a way to fix this...

    Both in connect.php and verifyEmail.php i replaced this line

    wp_set_auth_cookie( $user_id );

    with this one

    wp_set_auth_cookie( $user_id, true );

    This way it seems that mobile Safari is no longer deleting the login cookie...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Socialauth-WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic