Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cfhttp

Posted on 2001-09-03
11
Medium Priority
?
339 Views
Last Modified: 2013-12-24
Hi,

I am using the <cfhttp tag in combination with the <cfhttpparam with the post method.
The problem I have is that the target of the post does not recive the Session variables.
I see I can set up the <cfhttp tag to work with form, url, cgi and file variables but I did not see how the Session or Client ones can be passed.

Thanks.
0
Comment
Question by:simi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 5

Expert Comment

by:Yog
ID: 6451477
hmm, you can't. Sessions wont work across domain. You have to try cookie.
0
 
LVL 1

Expert Comment

by:MediaStorm
ID: 6451811
Any variables must be passed across in one of two ways:

1) As URL variables (http://www.xyz.com/index.cfm?session=1
2) As form variables
(input type="hidden" name="session" value="#session.cfid#")

Alternatively you might also want to look at WDDX and/or XML.

MediaStorm
0
 

Author Comment

by:simi
ID: 6452015
What I am trying to do is to save the state of a form and post it at a later time.
Like I have a form, the user checks some of the forme elemens, and then can either perform a post right away or save it and perform the post later. If so, I load all the values saved and perform a cfhttp.

Is there any better way for this ?
Thanks.
0
Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

 
LVL 14

Expert Comment

by:Scott Bennett
ID: 6458311
what you can do is save the original form post into session variables then when you wish to post them to the other server convert them into url or formfield variables using <cfhttp>
0
 

Author Comment

by:simi
ID: 6458326
I meant I want to save the forms between sessions.
0
 
LVL 14

Expert Comment

by:Scott Bennett
ID: 6458346
oh, then you can save them into a database table or save them into client variables. then access them when you need them
0
 

Author Comment

by:simi
ID: 6458410
That's what I did.
I saved them on a file.
Then I can recreate a form and cfhttp it.
I was just wondering if there is a better way.
The difference is that when I use cfhttp the url remains the one of the caller, while using a regular form, the submit makes the url to change.
0
 
LVL 14

Expert Comment

by:Scott Bennett
ID: 6458439
well, if you want the URL to change you can use cfhttp to send the form data then <cflocation> to send the user to the other site.

-Scott
0
 
LVL 1

Accepted Solution

by:
snakehollywood earned 100 total points
ID: 6466704
simply pull the data out of the database and populate the form next time the user returns. No need to use cfhttp.

0
 

Author Comment

by:simi
ID: 6466815
I dont't want to show the form, just to run the report.
Anyway I will create hidden fields in a form, then post it on load using a java script statement.
Thanks to all but I can assign the points to only one.
0
 
LVL 1

Expert Comment

by:snakehollywood
ID: 6466830
just out of interested, I saw someone once post that you can distribute points.
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question