• So now and again if a user logs out or if they have not enabled the remember button, they are unable to log back in. The error that occurs is: “Session token has expired, please reload the page and try again.”

    I am certain that it has to do with cookies, since if I manually clear the cache or even if the user manually clears their cache/opens the website in another browser it works. Unfortunately just reloading the page doesn’t help.

    I am using OceanWP Popup Login and have set following timeout rules in wpfastestcache:
    Home Page – 1 minute
    Start with category – every 5 minutes
    Start with 2 – every 15 minutes
    The all cache – every 10 hours

    If you wish to test it, I can provide a test login. Any help is much appreciated.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Emre Vona

    (@emrevona)

    did you enable the “Logged-in User” option?

    Thread Starter khuffu

    (@khuffu)

    @emrevona yes I have the logged in user option enabled. Disabling that would help or does that just mean that your plugin is not interfering with the session expired problem?

    I have also excluded the exact login link ‘/#opl-login-form’

    • This reply was modified 4 years, 1 month ago by khuffu.
    • This reply was modified 4 years, 1 month ago by khuffu.
    Plugin Author Emre Vona

    (@emrevona)

    Actually wp fastest cache does not cause such issue. do you have a server-side cache system?

    Thread Starter khuffu

    (@khuffu)

    @emrevona Unfortunately I can not seem to fix the problem. We have ran multiple tests and definitely pinpointed the problem to WPFC.

    The only thing that fixes the problem is if I clear the minified CSS/JS cache.

    It seems this has nothing to do with server side caching. How would we go about excluding the JS of the popup?

    Plugin Author Emre Vona

    (@emrevona)

    can you disable all the checkboxes except the “Cache System” option and clear all cache please?

    Thread Starter khuffu

    (@khuffu)

    @emrevona

    ok just did that. The only problem is I cant check if the issue still persists, as the session token expired only happens after a few days. When the session ends…

    Plugin Author Emre Vona

    (@emrevona)

    The problem is caused by wp nonce security system. You should set a cache timeout rule as below.
    https://www.wpfastestcache.com/tutorial/wordpress-nonce-cache/

    Thread Starter khuffu

    (@khuffu)

    @emrevona
    yes which I did, as per this post:
    https://www.ads-software.com/support/topic/problem-with-oceanwp-popup-login/

    I have had the following timeout rules in place:
    Home Page – every 1 minute
    Start with category – every 10 minutes
    Start with 2 – every 15 minutes
    The All Cache – every 10 hours

    Am I missing something?

    Plugin Author Emre Vona

    (@emrevona)

    this is not a correct way. if you need to clear cache so often, you do not need to use any cache plugin.

    and are you sure that WP_CRON system works properly in your site?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Login session token expired error’ is closed to new replies.