Our web application is deployed on Tomcat. If users visit http://domain.com and http://www.domain.com , they will receive two different JSESSIONID cookies and thus two separate sessions, one for the .com domain and one for www.domain.com . This causes all kinds of problems if they start to do something in a session on www.domain.com, and then they are redirected to the .com domain.
Is there a way to make Tomcat just use the same JSESSIONID for domain.com and www.domain.com?
source share