• website logs out every time someone close the the browser and opens it again.
    it is annoying when someone using it on mobile or on web app.
    how can it stays login. kindly help.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi eye
    Is your user or you need to log in again and again?
    Is it the WordPress dashboard or your user account?

    Thread Starter eyewayonline

    (@eyewayonline)

    It is the user (customer) account.

    //Add this code in your child theme function.php

    add_filter(‘auth_cookie_expiration’,’pt_stay_logged_in_for_2_months’);
    function pt_stay_logged_in_for_2_months($expire){
    return 5270400;// 2 Months in seconds
    }`

    Let me know if this is working ??

    Thread Starter eyewayonline

    (@eyewayonline)

    Sorry, it is not working. I tried that earlier too, but this code extends the time of “Remember me” functionality and not the default login (without remember me) or social login. As I got to know the cookie expiration without “remember me” option is 48 hours (which is neither working nor extending in my case) and with “remember me” option it is 14 days.

    Please refer the link here

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Logout issue’ is closed to new replies.