I'm not sure this will work? My understanding the nature of
cookies is
that the browser will only return cookies to a domain that
where created
by that domain.
So, even when you get that cookie and write it to the client
(which can
be done), the browser will only ever return that cookie when
the client
is talking to your server. When they move on to the other
server, the
browser will not send the cookie.
This may be outdated, but I thought that is how it works.
I am aware there are some way around this, but I have never
bothered to
learn how to circumvent the methodology. I think it involves
frames,
hidden or otherwise, connected to the remote server. So the
browser
then connects to that server, receives the cookies and sets
them for it.