What version of ColdFusion are you running, Brian? The "SCOPE" attribute of
the CFLOCK tag was not introduced until (group, correct me if I'm wrong
here) ColdFusion version 4.5. If you're running a version earlier than
this, you'll need to use named locks instead of scoped locks.
You can find out what version of ColdFusion is being run by logging into the
ColdFusion Administrator and clicking on the "Version Info" link in the
left-hand navigation menu (or, if you're running ColdFusion 5, it's on the
top menu across the page).
Regards,
Tyson
-----Original Message-----
From: Yager, Brian T Contractor/NCCIM
[mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 2:27 PM
To: CF-Talk
Subject: CFLOCK and Session variables
I know we have discussed this a good bit lately but I am still needing some
understanding. In my application, I make MANY session variables. I use
these
variables to check certain things on many pages. Because of the past
threads on
this I have surrounded them with CFLOCK tags. Now....Can someone explain
the
proper way to use them? What I mean is, I have tried giving them the scope
of
SESSION but it doesn't work. I get an error when I do this. Also, the
'throwontimeout'...if I were to say yes...where would it go?
Here is an example of what I am doing....
<cflock timeout="35" throwontimeout="No" name="Getthelogin" type="READONLY">
<cfif IsDefined("Session.login")>
<cfquery name="Get_login" datasource="#DSN#" dbtype="ODBC">SELECT * FROM
Customer_tbl WHERE cust_key = #Session.login#</cfquery>
<cfcookie name="login" value="#get_login.cust_key#" expires="NEVER">
</cfif>
</cflock>
Is this the correct way to do it?
Thanks,
Brian Yager
President - North AL Cold Fusion Users Group
Sr. Systems Analyst
NCCIM/CIC
[EMAIL PROTECTED]
(256) 842-8342
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists