WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. MuViMoTV
    Member
    Posted 1 year ago #

    Hi,

    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!

    http://wordpress.org/extend/plugins/socialauth-wp/

  2. MuViMoTV
    Member
    Posted 1 year 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

About this Topic