This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Servlets and the fly likes Cookie of Domain lost? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookie of Domain lost?" Watch "Cookie of Domain lost?" New topic
Author

Cookie of Domain lost?

minty zzz
Greenhorn

Joined: Jul 07, 2010
Posts: 1
Hi Experts,

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 java servlet 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?

Thanks,
MZ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cookie of Domain lost?