Login Issue with change the language of my store

I have some concerns regarding the domain-changing login issue. When I change the language of my store, the shop domain automatically changes. The problem arises when I change my shop domain for the same store, as it results in the automatic logout of user accounts. However, I would like users to remain logged in regardless of any changes in domain or country.

Edited by Community Moderator