Thanks Nic. It works.


Choo Khai Shien, Dominic





                    Nic Ferrier
                    <nferrier@TAPSELLFERR        To:     [EMAIL PROTECTED]
                    IER.CO.UK>                   cc:
                    Sent by: "A mailing          Subject:     Re: Getting a cookie
                    list for discussion
                    about Sun
                    Microsystem's Java
                    Servlet API
                    Technology."
                    <SERVLET-INTEREST@jav
                    a.sun.com>


                    05/23/2000 08:52 PM
                    Please respond to "A
                    mailing list for
                    discussion about Sun
                    Microsystem's Java
                    Servlet API
                    Technology."





>>> 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




---
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

Reply via email to