# How to Test Sign-In Sessions After a Website Domain Change

https://ferkesh.net/zh/knowledgebase/article/migration-session-cookie-domain-change

![Workflow: Map intended hostnames; Use separate test sessions; Check key transitions; Verify the released route.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-14.svg#migration-session-cookie-domain-change)

Browser sessions may not carry from one domain to another. Plan a fresh sign-in test and verify account boundaries rather than trying to transfer existing cookies.

## Procedure

1. **Map intended hostnames.** Record old and new login destinations, the canonical domain and authorized callback URLs. Check that redirects use the intended host and do not carry credentials.
2. **Use separate test sessions.** On staging or through an approved preview, log in with two non-production accounts. Verify the session is scoped to the expected host and private pages are correctly authorized.
3. **Check key transitions.** Test sign-out, ordinary return visits and sign-in links from the approved workflow. Review cookie scope and secure transport in read-only diagnostics without saving cookie values.
4. **Verify the released route.** Repeat an approved test on the new public path. Confirm what users should expect from the old domain and document any need to sign in again.

## Related guides

- [How to Change the Domain of an Existing WordPress Site](https://ferkesh.net/knowledgebase/article/wordpress-change-site-domain)
- [How to Minimize Website Downtime During a Hosting Migration](https://ferkesh.net/knowledgebase/article/website-migration-downtime-plan)
- [Backups and Website Migration articles](https://ferkesh.net/knowledgebase/category/backups-and-website-migration)

## Official references

- [MDN HTTP cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies)
- [Google hosting migration guidance](https://developers.google.com/search/docs/crawling-indexing/site-move-no-url-changes)

Ferkesh Hosting. Last reviewed November 26, 2026.
