• Resolved Erfan MHDi

    (@erfanmhd)


    Hello,

    i was wondering if it’s possible to force UltimateMember Plugin to save user login session without showing “Remember Me” button or checking “Show Remember Me” option in um->Setting->Appearance->LoginForm.

    i want to make user stay signed in after closing the browser without showing the “Remember Me” CheckBox on SignIn form.

    Thanks.

    • This topic was modified 3 years, 5 months ago by Erfan MHDi.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @erfanmhd

    Unfortunately, this requires customization on your end. Let’s see if others in the forum have done something similar and share their solution here.

    Regards,

    Thread Starter Erfan MHDi

    (@erfanmhd)

    Hi @champsupertramp,
    I thought maybe there is a better way with ultimate member hooks or filters than activating the remember me option in ultimate member and make it checked by js on pageload event and hide the box with css display none!
    Whats ur idea ?

    • This reply was modified 3 years, 5 months ago by Erfan MHDi.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @erfanmhd

    You can try hiding the Remember Me / Keep me Signed in field with the following CSS code:
    .um-login .um-field.um-field-c{ display: none !important;}

    And then add this PHP code to your theme’s functions.php file or use the code snippet plugin to run the code:

    add_action("um_after_login_fields", function(){
        
        echo "<input type='hidden' name='rememberme' value='1'>";
        
    });

    The above code will keep the Login form to use “Remember Me” in the background process.

    Regards,

    Thread Starter Erfan MHDi

    (@erfanmhd)

    Perfect, Thanks man !

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @erfanmhd
    Thanks for letting us know. I’m closing this thread now.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Force User to Stay SignedIn’ is closed to new replies.