wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes cookies and domains problem ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "cookies and domains problem ?" Watch "cookies and domains problem ?" New topic
Author

cookies and domains problem ?

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i have 3 domains
http://www.mydomain.com
http://subdomain1.mydomain.com
http://subdomain2.mydomain.com

my servlet at http://subdomain1.mydomain.com is setting cookie like this

my servlets at http://www.mydomain.com is able to read the cookies set by http://subdomain1.mydomain.com but

servlets at http://subdomain2.mydomain.com is not able to read the cookie

please help
kapil munjal
Ranch Hand

Joined: May 11, 2004
Posts: 298
Well, I have not experimented on this. But I feel that its like one interface and two classes implementing this interface.

Or One base class and two sub-classes.

I hope you got my point.

Accessing the resources of sub-classes by a reference of Super-classes is possible. But access the resources of a sister class is not possible.


Kapil Munjal
SCJP 1.4, SCWCD 1.4
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
I wonder if that is true. Cookie but its definition, should be readble from any URL from that domain. (.mydomain.com)
kapil munjal
Ranch Hand

Joined: May 11, 2004
Posts: 298
No, I think its right because domain and subdomain are different and cookies should not have access to sister domains.

Only the Base domain should have access to all the cookies of sub-domains.
amit taneja
Ranch Hand

Joined: Mar 14, 2003
Posts: 810
Originally posted by kapil munjal:

Accessing the resources of sub-classes by a reference of Super-classes is possible. But access the resources of a sister class is not possible.


a resources of sub-class be acessed by reference of super class only if super class has such methods... only for overriding..

guys i am not able to understand this setDomain concept ?
how does it work ? please tell me more..


Thanks and Regards, Amit Taneja
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cookies and domains problem ?