Thanks to all those who helped. 

Allaire's docs do seem a little ambiguous when they say that CFID and CFTOKEN can be 
passed as hidden form fields - I now see that URLTOKEN can be passed as a URL variable 
to the action page that your form submits to. Interesting post on this at 
http://forums.allaire.com/DevConf/Thread.cfm?&&Message_ID=308908&_#Message385663 

I also tried the following technique:

<CFSCRIPT>
if (IsDefined("Form.CFID") AND IsDefined("Form.CFTOKEN"))
{
  url.cfid=form.cfid;
  url.cftoken=form.cftoken;
}
</CFSCRIPT>

which I found at 
http://forums.allaire.com/DevConf/Thread.cfm?&&Message_ID=569454&_#Message569454, with 
no success. Anyone else tried this technique and succeeded? A similar sort of thing is 
described at 
http://forums.allaire.com/DevConf/Thread.cfm?&&Message_ID=336048&_#Message336048.

In the end, we have decided to use CFID and CFTOKEN on the URL, together with randomly 
generated hidden form fields as a further means of identification.

Pete

> -----Original Message-----
> From: Peter Lutwyche [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, 26 January 2001 12:27
> To: CF-Talk
> Subject: CFID and CFTOKEN, client variables, hidden form fields
>
>
> Apologies if this one has been asked before, but I couldn't find
> an answer in the archives.
>
> I would like to maintain state using Client (or Session)
> variables but do not want to use cookies. I know I am therefore
> reliant on the CFID and CFTOKEN being passed from page to page.
> What I would like to do is pass CFID and CFTOKEN as hidden form
> fields, rather than as URL variables. So far I have been able to
> create my forms containing a hidden CFID and CFTOKEN, but on
> submission of the form I'm unable to access any Client (or
> Session) variables using the ID and TOKEN. Has anyone managed to
> achieve this, and if so, would you be able to post a snippet of code?
>
> Cheers
> Pete


Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts

Reply via email to