Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies and Domain Names
 
Similar Threads
Passing username from Java Application using httpHeader to OBIEE server
Problems with lost sessions
Java session problem
addCookie()
URLConnection class