I am curious, I am setting up some session variables and have been doing it
via a cfparam at the mo to get a default var etc.. I have also been locking
it.   I have also been doing it via a cfscript call using StructInsert which
works just as well.  Should I lock the script block as well? or does it
really matter either way?

example.

<cfscript>
        StructInsert(session,"homepage","view the homepage","YES");
</cfscript>

<cflock timeout="1" throwontimeout="No" name="detect" type="EXCLUSIVE">
        <cfparam name="session.homepage" type="string" default="EN">
</cflock>
______________________________________________________________________
Macromedia ColdFusion 5 Training from the Source
  Step by Step ColdFusion
  http://www.amazon.com/exec/obidos/ASIN/0201758474/houseoffusion

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to