>>> Dominic Choo <[EMAIL PROTECTED]> 23-May-00 1:20:31 PM >>>

>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

Reply via email to