Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where they are prompted to log in again when switching to another domain from the language switcher.
Solution:
We recommend the following steps to resolve the issue:
1. Deactivate Litespeed caching.
2. Navigate to WPML->Languages and switch the URL format to POST instead of URL.
3. Resave permalinks.
4. Test the functionality again.

Note: We have reactivated Litespeed caching after testing.

If this solution does not seem relevant to your situation, please open a new support ticket with us.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 8 replies, has 3 voices.

Last updated by Bobby 1 year, 4 months ago.

Assisted by: Bobby.

Author Posts
December 13, 2023 at 7:30 am

lisaG-16

Hi. when I login to my website recilio.com and change to another domain from language switcher, to other addon domains which is recilio.se. It is asking for to do the logain again

December 13, 2023 at 8:20 am
December 15, 2023 at 9:57 am #15070817

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello!

I'll help you get started while a supporter takes your case. can you tell me if you have tried both the different options for this found on the WPML > Languages > Languages by domain setting you selected?

once you do this, you need to always resave the permalinks and then access for the first time on each language, but it should keep you logged-in between them afterwards.

Can you try the different options (GET, POST, etc) and then let me know if any of them work?

I wanted to check this myself but i can't access the wp-admin section of your page, it returns a 404 (i guess you changed the admin login url).

Regards.

December 18, 2023 at 12:38 pm #15084233

lisaG-16

Hello, I have done all the things which you have mentioned even I talked with the support person, He also tried everything in WPML- languages tab. He only created this ticket. I have changed the password. Can you please try it at your end and How I can share my login details again securely so that you can check.

December 18, 2023 at 10:40 pm #15087949

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

December 19, 2023 at 11:58 am
December 19, 2023 at 9:20 pm #15096693

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

To resolve I did the following:

1. WPML -> Languages -> Language URL Format -> enable " Auto sign-in and sign-out users from all domains " and save.

2. Resave permalinks

3. Log out

4. Log back in and now it works OK

NOTE: I have performed these steps already and it's working OK, no need to redo them.

Screen Shot 2023-12-19 at 1.17.44 PM.png
December 20, 2023 at 9:28 am #15099667

lisaG-16

Hi Thank you for your reply. It is working for admin users but not for non-admin users like customers. Can you plese check. I will share one customer login details if you want.

December 20, 2023 at 7:17 pm #15105655

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you, I was able to create a customer account to test.

Something is blocking the session from parsing to the secondary domains.

- Do you currently use Memcache? Possibly the server ? (I recommend asking the hosting provider)

- Deactivate any caching plugin (litespeed) and test again, as well as deactivate the object caching drop-in plugin

Let me know your results, please.

December 21, 2023 at 9:50 am #15108293

lisaG-16

Hello, Thank you for your reply. It was working before. Recently only we activated litespeed plugin but it was working after activation too. I checked it after deactivating it but issue is still there. Can you please suggest some other solution

December 22, 2023 at 10:06 pm #15121847

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me!

I was able to get it working as expected with the following steps:

1. Deactivate Litespeed caching

2. Go to WPML->languages->switch the URL format to POST instead of URL

3. Resave permalinks

4. Test again.

NOTE: I have turned Litespeed back on for now.

See the following screencast:
hidden link