Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CFID/CFTOKEN in form variables

0 views
Skip to first unread message

INRFungry

unread,
Jun 4, 2004, 10:05:30 AM6/4/04
to
Hi, I have read in several places that it is possible to pass CFID and CFTOKEN
in hidden form fields and client state will be preserved. My code works if I
pass CFID & CFTOKEN on the URL but trying the same in form fields doesn't, as in

<input type = "hidden" name = "CFID" value = "#client.cfid#">
<input type = "hidden" name = "CFTOKEN" value = "#client.cftoken#">

If I look at the generated HTML source, the hidden fields do have valid values
and the forms is definitely being submitted which lead me to think that the
names of my hidden fields are wrong. I con't find anything in the documentation
about how to do it - and we don't want to HAVE to use cookies - any ideas?

AkronNick

unread,
Jun 4, 2004, 10:54:42 AM6/4/04
to
Are you using <cflogin> and trying to pass these variables so that you don't have to use cookies to hold the client state?

Abinidi

unread,
Jun 5, 2004, 10:56:45 PM6/5/04
to
If you are using CFMX , and Jsessions are set to on in the administrator, I would use JESSIONIDS instead. They have in the past been more " sticky " for me when passing variables in forms.

INRFungry

unread,
Jun 7, 2004, 9:53:08 AM6/7/04
to
Basically, I am trying to preserve variables in the client scope without using
cookies - we have some clients who do not want to use cookies so we still have
to preserve CFID and CFTOKEN but not on the URL due to the security issues.

BTW we are using CF5 NOT MX

Thanks


SS-Adm-Spaz

unread,
Jun 12, 2004, 6:39:25 AM6/12/04
to
instead of #client.cfid# and #client.cftoken#, try using session variables, #session.cfid# and #session.cftoken#
0 new messages