Re: form.cfid ignored. Why?
with CF5 they need to be in the URL scope before the cfapplication tag (not to be confused with application.cfm file). Thanks for confirming. Looks like I'm hosed then. The application.cfm file calls the application tag, so it will be done before the page starts. Hmmm... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: form.cfid ignored. Why?
No, just do (not tested) cfif IsDefined(form.cfid) AND IsDefined(form.cftoken) AND NOT (IsDefined(url.cfid) AND IsDefined(url.cftoken)) cfset url.cfid = form.cfid cfset url.cftoken = form.cftoken /cfif cfapplication ... But do you have control over the sending page (form)? If you do, I would just pass cfid cftoken in the url instead of the form fields. form action="" method=post -Original Message- From: stylo stylo [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 april 2004 11:51 To: CF-Talk Subject: Re: form.cfid ignored. Why? with CF5 they need to be in the URL scope before the cfapplication tag (not to be confused with application.cfm file). Thanks for confirming. Looks like I'm hosed then. The application.cfm file calls the application tag, so it will be done before the page starts. Hmmm... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
No, just do (not tested) I don't see how that does it. The application page is called first, and it has the cfapplication tag in it, so already done by the time you start the page. But do you have control over the sending page (form)? No, coming from another site [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: form.cfid ignored. Why?
Common misconception: cfapplication... must reside in Application.cfm cfapplication tag can reside anywhere.Most people do use it in the application.cfm page.If you want something to happen before the cfapplication tag is executed in the application.cfm, just put the code before the cfapplication in your application.cfm. Example application.cfm: cfif isDefined('form.cfid') and not isDefined('url.cfid') cfset url.cfid = form.cfid /cfif cfif isDefined('form.cftoken') and not isDefined('url.cftoken') cfset url.cftoken = form.cftoken /cfif cfapplication name=something John Burns -Original Message- From: stylo stylo [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 11:00 AM To: CF-Talk Subject: Re: form.cfid ignored. Why? No, just do (not tested) I don't see how that does it. The application page is called first, and it has the cfapplication tag in it, so already done by the time you start the page. But do you have control over the sending page (form)? No, coming from another site [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
-Original Message- From: stylo stylo [mailto:[EMAIL PROTECTED] Sent: 02 April 2004 17:00 To: CF-Talk Subject: Re: form.cfid ignored. Why? snip I don't see how that does it. The application page is called first, and it has the cfapplication tag in it, so already done by the time you start the page. ... so you open up the application.cfm and put your code above the cfapplication tag - voila - your code executes before the cfapplication tag. Bert [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
so you open up the application.cfm and put your code above the cfapplication tag - voila - your code executes before the cfapplication tag. I understand that, but the page is in a folder with many pages all using the same application.cfm page. I'd have to rig the application.cfm for one page. Maybe have to... Thanks for all the info. Helpful! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
Looks like the CF5 docs are wrong then. I just did a quick test and it looks like with CF5 they need to be in the URL scope before the cfapplication tag (not to be confused with application.cfm file). CFMX 6.1 seems to handle them passed either in form fields or URL - can anyone confirm this? Cheers Bert ps here's what i used: cfapplication setclientcookies=No setdomaincookies=No sessionmanagement=Yes name=foo cfoutput formaction="" method=get input type=text name=cfid value=#session.cfid# input type=text name=cftoken value=#session.cftoken# input type=Submit value=passed in URL /form formaction="" method=post input type=text name=cfid value=#session.cfid# input type=text name=cftoken value=#session.cftoken# input type=Submit value=passed in form field /form /cfoutput -Original Message- From: stylo stylo [mailto:[EMAIL PROTECTED] Sent: 30 March 2004 07:36 To: CF-Talk Subject: Re: form.cfid ignored. Why? From MM livedocs, cf5, which we are on: you must maintain client state by passing CFID and CFToken between pages, either in hidden form fields or appended to URLs. thats true, but there's nothing to stop you copying form.cfid and form. token into into the URL scope, and this will do the trick as long as its before the the CFapplication tag. Hmm. How do I ensure it's before the application? It's called first automatically, no? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: form.cfid ignored. Why?
thats true, but there's nothing to stop you copying form.cfid and form. token into into the URL scope, and this will do the trick as long as its before the the CFapplication tag. Hmm. How do I ensure it's before the application? It's called first automatically, no? NO. You have to code cfapplication somewhere. So just before it you can do cfif IsDefined(form.CFID) AND NOT IsDefined(url.CFID) cfset url.cfid = form.cfid /cfif And the same for cftoken You can also set setclientcookies=no and do all the cfid/cftoken handeling yourself. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: form.cfid ignored. Why?
thats true, but there's nothing to stop you copying form.cfid and form.token into into the URL scope, and this will do the trick as long as its before the the CFapplication tag. HTH Bert -Original Message- From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: 29 March 2004 05:27 To: CF-Talk Subject: RE: form.cfid ignored. Why? As far as I remember you could never pass CFTOKEN/CFID as form fields - Cookies and URL variables only. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
From MM livedocs, cf5, which we are on: you must maintain client state by passing CFID and CFToken between pages, either in hidden form fields or appended to URLs. thats true, but there's nothing to stop you copying form.cfid and form. token into into the URL scope, and this will do the trick as long as its before the the CFapplication tag. Hmm. How do I ensure it's before the application? It's called first automatically, no? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: form.cfid ignored. Why?
Did you have CFID and CFTOKEN as cookies too? I think CF will take those before it looks at the form scope. It would be fairly easy to have some tests to see what is accepted first. Have the cookies set and have url and form vars passed to the test page. See what session picks up. Pascal -Original Message- From: stylo stylo [mailto:[EMAIL PROTECTED] Sent: zondag 28 maart 2004 7:06 To: CF-Talk Subject: Re: form.cfid ignored. Why? Sorry, I see how the list works now. I am posting on the HOF site and changed the title when replying. Here is the background to this message, followed by, well, the follow up: I want an background post from my card processor tolog into a particular customer session. Hmm, stopped working now. I have an approval post from my cc processor. Previously I got back the cfid/token values only, so tacked them on a cflocation string and reloaded to hook up with the correct customer session. Funny thing was, it worked locally, but onsite kept looping as though it were reposting. (Logs actually said post, not get. Why???) I added a special url variable to the string to check, and that broke the looping and it worked. I then found out I could get hidden vars back, so I'm getting cfif and cftoken back as form vars. Should work, but stopped, as though it isn't hooking up with the correct session anymore. *** I just did a cfdump of form and session variables at the top of the page called by my cc processor using a live transaction. The form.cfid and token aren't picked up! Session vars (created on the same page as below, ignoring the form variables present): CFID 732823 CFTOKEN 15411960 Form vars (which is the correct session of the person paying): CFID 732698 CFTOKEN 37242305 Why might this not be working? Any ideas? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
Did you have CFID and CFTOKEN as cookies too? I highly doubt that as this is a post from a card processor's site, not a browser that can accept cookies. But something to check, thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: form.cfid ignored. Why?
As far as I remember you could never pass CFTOKEN/CFID as form fields - Cookies and URL variables only. I would check this first. I haven't tried it since CF 4.5 so my information is dated. Jim Davis _ From: stylo stylo [mailto:[EMAIL PROTECTED] Sent: Sunday, March 28, 2004 8:37 PM To: CF-Talk Subject: Re: form.cfid ignored. Why? Did you have CFID and CFTOKEN as cookies too? I highly doubt that as this is a post from a card processor's site, not a browser that can accept cookies. But something to check, thanks. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
Sorry, I see how the list works now. I am posting on the HOF site and changed the title when replying. Here is the background to this message, followed by, well, the follow up: I want an background post from my card processor to log into a particular customer session. Hmm, stopped working now. I have an approval post from my cc processor. Previously I got back the cfid/token values only, so tacked them on a cflocation string and reloaded to hook up with the correct customer session. Funny thing was, it worked locally, but onsite kept looping as though it were reposting. (Logs actually said post, not get. Why???) I added a special url variable to the string to check, and that broke the looping and it worked. I then found out I could get hidden vars back, so I'm getting cfif and cftoken back as form vars. Should work, but stopped, as though it isn't hooking up with the correct session anymore. *** I just did a cfdump of form and session variables at the top of the page called by my cc processor using a live transaction. The form.cfid and token aren't picked up! Session vars (created on the same page as below, ignoring the form variables present): CFID 732823 CFTOKEN 15411960 Form vars (which is the correct session of the person paying): CFID 732698 CFTOKEN 37242305 Why might this not be working? Any ideas? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: form.cfid ignored. Why?
I want an background post from my card processor to log into a particular customer session. I just did a cfdump of form and session variables at the top of the page called by my cc processor using a live transaction. The form.cfidand token aren't picked up! Session vars (created on the same page as below, ignoring the form variables present): CFID 732823 CFTOKEN 15411960 Form vars (which is the correct session of the person paying): CFID 732698 CFTOKEN 37242305 Why might this not be working? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]