• Resolved bobjgarrett

    (@bobjgarrett)


    We continue to have occasional problems where members appear to be logged in but are unable to access certain site features. The solution sometimes seems to be log out, close browser, open browser, log in again and it works.
    I also have a suspicion that it happens around two weeks after they logged in previously. The following shows extracts of the debug log around one user (I changed name to HIMXXXX) who had the problem and solved it by logging out using the WP logout feature and then logged in again using SWPM.

    [2024/02/07 11:20:22] - SUCCESS: validate() - Session Expired
    [2024/02/07 11:20:22] - SUCCESS: wp_authenticate action. Empty username provided. Adding set_current_username hook to catch potential login attempt.
    [2024/02/07 11:21:13] - SUCCESS: wp_authenticate action. Handling login for username: admin
    [2024/02/07 11:21:13] - SUCCESS: SwpmAuth::login()
    [2024/02/07 11:21:13] - SUCCESS: Authentication request - Username: admin
    [2024/02/07 11:28:40] - SUCCESS: wp_authenticate action. User with username: HIMXXXX is already logged in.
    [2024/02/07 11:28:40] - SUCCESS: wp_login hook triggered. Username: HIMXXXX
    [2024/02/07 11:28:51] - SUCCESS: validate() - Session Expired
    [2024/02/07 11:29:05] - SUCCESS: validate() - Session Expired
    [2024/02/07 11:33:30] - SUCCESS: validate() - Session Expired
    [2024/02/07 11:33:37] - SUCCESS: validate() - Session Expired Then he tried again later, logging out of WP then logging in Swpm [2024/02/08 08:41:31] - SUCCESS: Authentication request - Username: MEXXXXX
    [2024/02/08 11:22:13] - SUCCESS: Authentication request - Username: HIMXXXX
    [2024/02/08 11:22:13] - SUCCESS: Authentication successful for username: HIMXXXX. Triggering swpm_after_login_authentication action hook.
    [2024/02/08 11:22:13] - SUCCESS: Trying wp_signon() with username: HIMXXXX
    [2024/02/08 11:22:13] - SUCCESS: wp_authenticate action. User with username: HIMXXXX is already logged in.
    [2024/02/08 11:22:14] - SUCCESS: wp_login hook triggered. Username: HIMXXXX
    [2024/02/08 11:22:14] - SUCCESS: Setting current WP user to: HIMXXXX
    [2024/02/08 11:22:14] - SUCCESS: Triggering swpm_login_auth_completed_filter hook.
    [2024/02/08 11:22:14] - SUCCESS: Triggering swpm_after_login hook.

    Any suggestions why this might be?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. Do you have a cache plugin running in your site? Does your server have a cache system running?

    Do you have the following feature Logout Member on Browser Close enabled? This is located under Advanced Settings tab.

    Kind regards.

    Thread Starter bobjgarrett

    (@bobjgarrett)

    Yes, we have W3 Total Cache. But we have included the setup instructions you provide to exclude certain cookies and pages.

    We don’t log members out on browser close as we think they prefer to get straight back in if they revisit within a certain period of time. But might this solve the problem?

    Plugin Support mbrsolution

    (@mbrsolution)

    But might this solve the problem?

    It could solve your issue. I recommend activating this feature for a trial period to see if it helps you.

    Kind regards.

    Thread Starter bobjgarrett

    (@bobjgarrett)

    I have tried as suggested and now the problem has arisen for me! I am able to get to the WordPress dashboard etc but the actual web site says need to log in.

    What I have now identified is that the server has “memcached”. Is that the problem?

    Plugin Support mbrsolution

    (@mbrsolution)

    What I have now identified is that the server has “memcached”. Is that the problem?

    Yes, that is probably causing the issue you are experiencing in your site.

    Kind regards.

    Thread Starter bobjgarrett

    (@bobjgarrett)

    I hosting company are saying that Memcached would only be doing something if there is a caching plugin too. Is that right? I have never heard of it before.

    Plugin Support mbrsolution

    (@mbrsolution)

    Unfortunately I have not dealt with Memcached myself. Can you find out if there is an option in Memcached to exclude cookies? If there is, try adding the following cookie “swpm_session” for exclusion.

    Regards.

    • This reply was modified 8 months, 4 weeks ago by mbrsolution.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Login Problems’ is closed to new replies.