OK I am pretty new to fusebox,

so I have got a question,

In app_globals

I have wrote,

<cfif isdefined("session.securityLevel")>
        <cflock scope="session" timeout="30" type="readonly">
                <cfset request.securityLevel = session.securityLevel>
                        <cfif isdefined("session.securityLevel")>
                                <cfset request.customerID =
session.customerID>
                        </cfif>
        </cflock>
<cfelse>
        <cfset request.securityLevel = 0>
</cfif>

OK I think I'm right when I say this, that application scope vriables are
locked for single thread access,
so does this mean that if a default session is twenty minutes, every time
the application.cfm is run it checks
cflock timestamp set in memory (or something like that), (well actually what
does it check? what is stopping it from resetting the session from setting
over and over
never expiring as long as a .cfm template is run?)

I have applied the same session technique to coldfusuion templates in a
secured directory and it works,
but I don't really understand why it works.

Thank you in advance.....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to