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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists