it appears that he is asking a question that I was wondering about as
well...
How do you specify the domain name if you are not using a domain name ?
(you are only using an ip address)
Would that work as well ?

Andy



>I invoke the retrieveCookie again but it can't get that particular
cookie.
>So, my question is how to get a cookie from a server but that cookie
is not
>belonged to that server? How to get the IP address from a cookie?

Check the cookies RFC. You will see that cookies by default are only
sent to the host which they came from.

You should set the domain property of the cookie to include a common
domain name shared by the two servers.

For example if you have:

  serverA.hosts.somenet.mydomain.net
  serverB.servers.somenet.mydomain.net

you could set the cookies domain property to: somenet.mydomain.net
and the cookie would be delivered to both hosts.


Nic

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




---
Disclaimer note:
Confidential information may be contained in the e-mail and any files
transmitted with it ('Message'). If you are not the addressee indicated in
this Message (or responsible for the delivery of this Message to such
person), you are hereby notified that any dissemination, distribution,
printing or copying of this Message or any part thereof is strictly
prohibited. In such a case, you should delete this Message immediately and
advise the sender by return e-mail. Opinions, conclusions and other
information in this Message that do not relate to the official business of
e-BX nor any of its related companies shall be understood as neither given
nor endorsed by e-BX nor any of its related companies.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to