• Resolved Ariyan

    (@ariyan0282)


    Hi WooCommerce Community.

    I am back with another problem ??

    I have build an store using woocommerce. Everything is fine working but now My clients are facing serious issue with Logout. Everyone just get loggedout after few hours of inactivity. How can I modify it our some kind of stop it and make them always logged in. I hope you understand. They didn’t clear cookies of the browser still …

    So is there any solution for it. I am using Digits WordPress login Plugin for my Login activity. Link: https://codecanyon.net/item/digits-wordpress-mobile-number-signup-and-login/19801105
    I am gonna create a support ticket on their portal also. But I am not sure where the actual problem. Let’s see!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rafy a11n

    (@nawaz0705)

    Hi @ariyan0282

    Thank you for reaching out!

    As the first steps, I would suggest temporarily disable the Digits WordPress login plugin and then check if the issue still persists.

    If the issue still persists, it might be caused by a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing the conflict. You can find a more detailed explanation on how to do a conflict test here.

    Before you start

    • First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    • Second, I would suggest installing a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.
    • I hope this helps!

    Thread Starter Ariyan

    (@ariyan0282)

    I have done testing but no plugin causing the issue, not even the Digits. I am still confused.

    Do you know any way to hold cookies for a long time and stay logged in?

    or

    I am written the issue to the Digits team, let’s see!

    Thread Starter Ariyan

    (@ariyan0282)

    Issue resolved I have found this thing and it works for me..

    add_filter(‘auth_cookie_expiration’, function(){
    return YEAR_IN_SECONDS * 2;
    });

    Thanks Team

    Hi @ariyan0282

    It is great that you were able to find a way forward.

    Thank you for sharing the solution.

    If you have further questions, feel free to create a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Logout Automatically after few hours.’ is closed to new replies.