The cookies ARE always set with the domain as fgic.com.  The problem is that
when someone visits www.bond-insurance.com, the browser sends the cookies
for THIS domain in the request object.  But there are no cookies under
www.bond-insurance.com.

What I've finally come up with is to use an index.jsp file with the
following:

<META HTTP-EQUIV="REFRESH" content="0;URL=http://<%= request.getServerName()
%>/index.html">

So index.html is my real homepage and I just configure Netscape to use
index.jsp as the default document before index.html so now everyone is
redirected to the proper domain.


-----Original Message-----
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 14, 1999 12:27 PM
To: [EMAIL PROTECTED]
Subject: Re: How can I retrieve a cookie from another domain?


If www.bond-insurance.com and www.financial-guaranty.com don't actually need
to access the data themselves, they can create a cookie with the domain set
to .fgic.com and www.fgic.com should be able to retrieve it.
    (*Chris*)

----- Original Message -----
From: Boemio, Neil (CAP, FGI) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 14, 1999 5:50 AM
Subject: Re: How can I retrieve a cookie from another domain?


> Unfortunately they are separate.  Example www.bond-insurance.com and
> www.financial-guaranty.com both go to www.fgic.com.  So if a user first
goes
> to www.bond-insurance.com they will be given a client ID in a cookie.  But
> now if they go to www.fgic.com, the servlet will not see the cookie and
> think they've never been here before and it will give them another ID.  Is
> there a better way to do this without forcing a user through a login?
>
> -----Original Message-----
> From: Chris Pratt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 13, 1999 11:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How can I retrieve a cookie from another domain?
>
>
> That depends on whether those are actually xxx.mydomain.com,
> yyy.mydomain.com and aaa.mydomain.com.  If so, you can just set the domain
> of the cookie to .mydomain.com and it will get returned to all three
> servers.
>     (*Chris*)
>
> ----- Original Message -----
> From: Boemio, Neil (CAP, FGI) <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 13, 1999 4:12 PM
> Subject: How can I retrieve a cookie from another domain?
>
>
> > If I have xxx.com and yyy.com both going to aaa.com, how can I retrieve
a
> > cookie for aaa.com when any of these are visited.
> >
> > So when someone visits xxx.com, I want to be able to retrieve it from
> under
> > aaa.com because that's where my servlet put it since I use
> > request.getServerName() when setting the cookie.
> >
> > If I use request.getCookies(), it tries to get it from where the user
> > visited .... example xxx.com or yyy.com .... but it's not there.  It
will
> > always be under aaa.com.
> >
> >
> > Neil
> >
> >
>
___________________________________________________________________________
> > 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
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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