This is a hairy one. But CFToken by itself is almost useless without the
relevant CFID which identifies to ColdFusion the client requesting the page.
You should combine CFID/CFTOKEN.

Remember that the application.cfm template is executed BEFORE any other cfml
template.

setclientcookies="no" could also be an issue but is browser related and not
code related.

Testing for the existence in the application.cfm template can therefore be
problematic.

Also why not just use the URLToken attribute? You seem to be over
complicating your code.

ColdFusion MX 6.1 (RedSky) also introduces a new method of tracking sessions
(cannae remember what it is at the moment) but is based on a valid UUID (eg:
CreateUUID() function).

-----Original Message-----
From: cf talk [mailto:[EMAIL PROTECTED]
Sent: Saturday, 4 October 2003 2:13 AM
To: CF-Talk
Subject: cftoken becoming undefined...

I am maintaining a site that has been working fine.  We just upgraded to MX
and one of my pages has stopped functioning.  Basicaly, I am getting the
following error

The system has attempted to use an undefined value, which usually indicates
a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.

The error occurred in C:\WelcomHome\Application.cfm: line 3

1 : <cfapplication name="welcomhome" clientmanagement="Yes"
sessionmanagement="Yes" setclientcookies="No">
2 :
3 : <CFIF isdefined("session.g_username")>

I checked debug and found that my cftoken is undefined at this point.  The
cftoken is there for the previous page.  Here is the code that calls the
error page.

function popupPage() {
var page =
"gmd_legend_help.cfm?cfid=#form.CFID#&CFTOKEN=#form.CFTOKEN#&WH_PROJECT_UID=
#form.WH_PROJECT_UID#&CATG_ID=#form.CATG_ID#&ACTY_ID=#form.ACTY_ID#&AGENCY=#
form.AGENCY#";
windowprops = "height=250,width=375,location=no,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
window.open(page, "Popup", windowprops);
}

Can anyone help me figure out why the cftoken is going "poof"?

Thanks,

Brian Yager
President - North Alabama
Cold Fusion Users Group
http://www.nacfug.com

Ground-Based Midcourse Defense JPO
Contractor CSC
(256)313-9668
[EMAIL PROTECTED]


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to