The scope attribute was added in ColdFusion 4.5. In ColdFusion 4, you can
approximate this behavior by using the name attribute. For Session
variables, use the name #Session.SessionID#. For Application variables, use
the name #Application.ApplicationName#.

Benjamin S. Rogers
Web Developer, c4.net
Voice: (508) 240-0051
Fax: (508) 240-0057

-----Original Message-----
From: David Baskin [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 5:10 PM
To: CF-Talk
Subject: Locking Question


Hello, i'm setting a session variable in a template so i'm using cflock, but
i'm getting an error on the scope attribute. i've checked the documentation
and it doesn't list scope as valid, but it shows up in Studio and well, it
just makes sense that you would use scope. Below is the code i was trying to
use. Also, what is the "proper" timeout that should be used for locking
session variables. Thanks for any help.

d


<!--- session setup --->
<cflock scope="SESSION" timeout="2" throwontimeout="Yes">
<cftry>
    <cfset session.userID = FORM.userID>
<cfcatch type="Lock">
    <cflocation url="index.cfm?error=2">
</cfcatch>
</cftry>
</cflock>
<!--- end session setup --->

<cfinclude template="whatever.cfm">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to