Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    1) this is most likely nonce issue , where does that login page come from ? your theme or plugin or something ?

    2) maybe you can try disable optimization for login user as well , and see how it goes

    3) default no-cache on ajax

    4) default no-cache on my account , checkout, cart page

    Best regards,

    Thread Starter ghyootjp

    (@ghyootjp)

    Hi,

    1) The popup login system/page comes from the theme. It can be deactived entirely and or re-directed to the standard woocomerce my-account page however I do like how the thing works. Is there some info I can source to put on the exclusion list to avoid the Nonce issue? Does a Nonce issue linked/related to caching?

    2) I do not understand your suggestion? At present I have de-activated caching for logged in user.

    3) ok, noted

    4) Ok, noted

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    1) yes, nonce is like a validation token which has expiration , and when page is cached , nonce is also cached , and when nonce is expired while page is still using the expired nonce , it gives error like that

    please contact your theme author and kindly ask them what is the nonce name they used for pop up login page , once you get the nonce names, I will assist you for next steps

    2) no , I mean , page optimization -> tuning setting -> at bottom of this page, there is an option to exclude role from page optimization , see how that goes , purge all after you set it

    Best regards,

    Thread Starter ghyootjp

    (@ghyootjp)

    Hi, message from theme author below. Please note request from Theme author at the bottom. They would like to integrate some info into theme for better compatibility with LS Cache.

    “here is nonces which is used in forms

    <?php wp_nonce_field( ‘ajax-login-nonce’, ‘register-security’ ); ?>
    <?php wp_nonce_field( ‘ajax-login-nonce’, ‘loginsecurity’ ); ?>

    first is for registration
    second is for login

    there are also some other nonces for ajax

    ‘nonce’ => wp_create_nonce(‘ajaxed-nonce’),
    ‘hotnonce’ => wp_create_nonce(‘hotnonce’),
    ‘wishnonce’ => wp_create_nonce(‘wishnonce’),
    ‘searchnonce’ => wp_create_nonce(‘search-nonce’),
    ‘filternonce’ => wp_create_nonce(‘filter-nonce’),
    ‘helpnotnonce’ => wp_create_nonce(‘commre-nonce’),
    ‘favornonce’ => wp_create_nonce(‘favornonce’),
    ‘comparenonce’ => wp_create_nonce(‘compare-nonce’),

    ask them to provide me code for their filters, so, I will add it to core
    files of theme for better support of their plugin”

    Thread Starter ghyootjp

    (@ghyootjp)

    following pages also have issue where data does not display sometimes unless all cache is flushed

    https://www.mytanklife.com/wishlist/
    https://www.mytanklife.com/compare-products/

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    since you have the nonce names , then please go to Cache -> ESI , enable ESI , and then in the ESI nonce list filed , add these nonce names into it , save and purge , then see how it goes

    Best regards,

    Thread Starter ghyootjp

    (@ghyootjp)

    Thanks, is there any recommendation on how to save the info into the box? or do I just paste as is?

    <?php wp_nonce_field( ‘ajax-login-nonce’, ‘register-security’ ); ?>
    <?php wp_nonce_field( ‘ajax-login-nonce’, ‘loginsecurity’ ); ?>
    ‘nonce’ => wp_create_nonce(‘ajaxed-nonce’),
    ‘hotnonce’ => wp_create_nonce(‘hotnonce’),
    ‘wishnonce’ => wp_create_nonce(‘wishnonce’),
    ‘searchnonce’ => wp_create_nonce(‘search-nonce’),
    ‘filternonce’ => wp_create_nonce(‘filter-nonce’),
    ‘helpnotnonce’ => wp_create_nonce(‘commre-nonce’),
    ‘favornonce’ => wp_create_nonce(‘favornonce’),
    ‘comparenonce’ => wp_create_nonce(‘compare-nonce’),

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    no no no

    in case of wp_nonce_field( ‘ajax-login-nonce’, ‘register-security’ ) , register-security is the nonce name

    in case of ‘nonce’ => wp_create_nonce(‘ajaxed-nonce’), , ajaxed-nonce is the nonce name

    extract the names and add them into list , save and purge all

    Best regards,

    Thread Starter ghyootjp

    (@ghyootjp)

    Thank you, I tried that and so far all seems well.

    Are you able to send info as requested by theme author?

    “ ask litespeed to please provide code for their filters, so, we will add it to core
    files of theme for better support of their plugin”

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    certainly, please relay this link https://docs.litespeedtech.com/lscache/lscwp/api/#convert-custom-nonce-to-esi

    Best regards,

    Thread Starter ghyootjp

    (@ghyootjp)

    Thank you, I will forward to theme author

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please let us know if you need any further assistance from our side

    best regards,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Various issues (session expiration for login and ajax pages )’ is closed to new replies.