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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists