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

Read Cookie set by remote server

Explorer ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

Hi,

I need to read a cookie set by a remote server and return the results. On the remote server I have an html file with javascript code that reads the cookie. What I want to do is return this to my cf template using something like cfhttp. Is this possible? If I run the code displayed below, I get no cookie info, as though the cookie didn't exist.

Just running the .htm file works fine.

example: www.remoteserver.com/getcookie.htm - displays the cookie that was set on my computer by a program on the remoteserver.com.

Is there any way of retrieving and working with the cookie values?

Thanks, Doug
TOPICS
Advanced techniques

Views

373

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
Explorer ,
Jul 09, 2007 Jul 09, 2007

Copy link to clipboard

Copied

Bouncing this question as I still need a solution.

Doug

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
Community Expert ,
Jul 09, 2007 Jul 09, 2007

Copy link to clipboard

Copied

LATEST
I think it all depends on the content of the page getcookie.htm. You appear to be able to influence that page, so why don't you make it

getcookie.cfm
=============
cookies: <cfoutput>#CGI.HTTP_COOKIE#</cfoutput>

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