We have a scenario whereby we have 2 portals of different domains and 1 portal is the leading portal that has a login page where when user logins, submits credentials to the 1st and 2nd portal and sign on simulatenously seamlessly. This is done by creating a javaservlet in the 1st portal that forwards the user details to the 2nd portal. 2nd portal returns the cookie to the servlet which passes it back to the browser.
We noticed the cookie was passed back to the servlet but user is not logged into 2nd portal. On investigation, we noticed the cookie's domain was missing when it reached the servlet. Is the domain auto removed if it enters another domain?