• Hello,

    We’re using the cookie based method, to avoid issues with litespeed cache.

    add_filter (‘wcml_user_store_strategy’, function($strategy, $key) {
    return’cookie’;
    }, 10, 2);

    However, we’re setting multiple sets of cookies being set, typically between 2 to 3 duplicate sets. E.G

    Set-Cookie:

    wcml_client_currency=GBP; expires=Tue, 02 Jul 2024 16:26:50 GMT; Max-Age=172800; path=/; secure

    Set-Cookie:

    wcml_client_currency_language=en; expires=Tue, 02 Jul 2024 16:26:50 GMT; Max-Age=172800; path=/; secure

    Set-Cookie:

    wcml_client_country=GB; expires=Tue, 02 Jul 2024 16:26:50 GMT; Max-Age=172800; path=/; secure

    Set-Cookie:

    wcml_client_currency=GBP; expires=Tue, 02 Jul 2024 16:26:51 GMT; Max-Age=172800; path=/; secure

    Set-Cookie:

    wcml_client_currency_language=en; expires=Tue, 02 Jul 2024 16:26:51 GMT; Max-Age=172800; path=/; secure

    Set-Cookie:

    wcml_client_country=GB; expires=Tue, 02 Jul 2024 16:26:52 GMT; Max-Age=172800; path=/; secure

    I can see a similar issue with wp-rocket here but it doesn’t appear to have been fixed:

    https://github.com/wp-media/wp-rocket/issues/3998

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @devksec,

    According to our archives, this issue was related to WPML core plugin but should have been fixed a few versions ago.

    If you are using WPML, please go to our support forum and open a chat there, we have all the required tools to assist you and we will be happy to help you to solve this issue quickly.

    In case that it happens with our WCML standalone version, could you please try to replicate it on the following Sandbox? You only need to set litespeed cache as it is in your website.

    Regards

    Thread Starter dev

    (@devksec)

    Hello,

    This is on the WCML standalone version not WPML core. We used to use WPML long time ago but caused too many issues, so only use WCML standalone.

    Litespeed requires specific hosting server, not just the plugin and we’re using a complex site so not possible to setup in sandbox.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    I totally understand it. Could you please provide us with an URL where we can see the issue?

    Thread Starter dev

    (@devksec)

    Hello,

    Can you provide an email address to send them to? Will be easier so I can include photos also.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Sure, you can write us to [email protected]. Please, also could you tell us which URL’s are setting those cookies?

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @devksec,

    Thank you for your help, we have been able to reproduce it. I’ve created an internal ticket and our devs will analyse this situation.

    We will let you know when we have any news!
    Regards

    Thread Starter dev

    (@devksec)

    Great, do you know what the cause is or what’s triggering it?

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    We can’t tell at this point, it will take a while as it needs a special setup in order to be debug properly.
    We will keep you updated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.