Help! I'm getting desperate!
I have the following situation: I'm running CF 4.5.1 on Windows 2000
Professional with Oracle 8.1.6 and Netscape 3.63 web server.
In a particular template, I cfoutput the value of a session variable called
NEATClientID. It appears very nicely.
On that same form I have
<cfquery name="Get" datasource="NEAT" dbtype="Oracle80">
select pname, pa_id from participants where client_id =
#Session.NEATClientID#
</cfquery>
<cftable query="Get" htmltable border="1">
<cfcol width="10" text="<a
href=""adm.cfm?pid=#pa_id#"">Delete</a>">
<cfcol text="#pname#" header="Label" align="left">
</cftable>
The cfquery works nicely. The cftable nicely displays its two columns where
the left column is a hyperlink of the word Delete and the right column is
the pname retrieved from the query. It displays very nicely.
The problem is this: When I click on the "Delete" link in one of the table's
rows (any one), the template adm.cfm gets invoked as it should. The first
thing I do in that template is to print out the value of the session
variable NEATClientID again. But by that point it is undefined!!!
I went back to the original template and printed out the values of all my
scalar session variables. They printed very nicely.
I did the same in the template adm.cfm (the one invoked via the "Delete"
hyperlink) and they all printed nicely again except for NEATClientID. It
wasn't there and sure enough, Cold Fusion compalined that it is undefined
when I referred to it by name a few statements after printing the list of
session variables.
WHAT COULD HAVE HAPPENED? Why is it defined just before I click the
hyperlink and not defined right after? And why that session variable and not
others? What am I missing?
I case it's helpful, here is the start of my Application.cfm:
<cfapplication name="Neat" clientmanagement="No" sessionmanagement="Yes"
setclientcookies="No"
sessiontimeout=#CreateTimeSpan(0, 0, 45, 0)#>
The rest of the Application.cfm is simply a list of <cfparam> tags with no
logic just straight cfparams.
Thanks very very much for any help you can offer.
-- Tim Dempsey
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists