jQuery in Action, 2nd edition
The moose likes JSP and the fly likes Cookies and Domain Names 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 » JSP
Bookmark "Cookies and Domain Names" Watch "Cookies and Domain Names" New topic

Cookies and Domain Names

V Chauhan
Ranch Hand

Joined: Nov 15, 2002
Posts: 70
Hi Ranchers,

I am confused regarding cookies and domain names.

I have two J2EE applications running on hosts : xyz.foo.com and myapp.abc.foo.com.

Now, if the application running on xyz.foo.com sets a cookie with domain as ".foo.com", will it be visible to the application running on myapp.abc.foo.com?

Thanks in advance,
Don't get me started about those stupid light bulbs.
subject: Cookies and Domain Names