This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Cookies and Domain Names" Watch "Cookies and Domain Names" New topic
Author

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,
Basu.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Cookies and Domain Names
 
Similar Threads
Problems with lost sessions
Java session problem
addCookie()
URLConnection class
Passing username from Java Application using httpHeader to OBIEE server