Issue
- The environment is set up so that 2 different domains are acting as their virtual hosts
- When a user accesses one domain and logs in, and then switches to the other domain name, they find that user sessions are not carried through to each URL
Environment
- Liferay DXP 7.3+
Resolution
- This is the intended behavior
- User sessions and cookies are tied to the domain name, so when switching between different domain names and virtual hosts of the same environment, it is expected that the user would have to authenticate again
- This is true as well for domain names that have a www pre-pended to it and the same name without the www prefix.
- For example: www.test.com and test.com are two separate domain names, and as such, user sessions would not be carried over between the two
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In