• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Passing another sites cookie on to the client?

Community Beginner ,
Sep 10, 2008 Sep 10, 2008

Copy link to clipboard

Copied

We are working with a third party vendor who has a web site which our CF server will authenticate to on behalf of the client browser using CFHTTP, and then the third party site replies back to our CF server with a cookie which we need to pass to the client browser. The client can then communicate with the third party site once the client has the cookie. Obviously I can use CFCOOKIE to create the client side cookie but what's the easiest way to read the cookie returned to the CF Server?
Thanks,
Steve
TOPICS
Advanced techniques

Views

320

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2008 Sep 10, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation