Why does changing my store's domain log out users?

Topic summary

Issue: Changing the store’s country automatically changes the shop’s domain (website address/hostname). When the domain is changed—even for the same store—users are automatically logged out.

Impact: The store owner wants user accounts to remain logged in regardless of domain or country changes, aiming to preserve session continuity across such changes.

Clarification: “Domain” refers to the site’s address (e.g., example.com). Altering it changes where users access the store.

Status: No solution, workaround, or technical explanation has been provided. No decisions or action items are noted. The question of how to keep users logged in across domain/country changes remains open.

Moderation: The post indicates it was edited by a Community Moderator, but the nature of the edit is unspecified.

Summarized with AI on January 8. AI used: gpt-5.

I have some concerns regarding the domain-changing login issue. When I change the country 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