>
> I like you idea have you got a small example of this so I can see exatly
> what you talking about.
>

Yup....

<!--- Application.cfm --->
<cflock scope="SESSION" type="READONLY">
    <cfset request.sessionvar = Duplicate(session)>
</cflock>

<!--- Other files --->
<cfoutput> #request.sessionvar.userid#</cfoutput>
<!--- Instead of <cfoutput> #session.userid#</cfoutput> with all the
appropriate locking --->
<cfset request.sessionvar.newvar = "Will be copied automatically into the
session scope in OnRequestEnd">

<!--- OnRequestEnd.cfm --->
<cflock scope="SESSION" type="EXCLUSIVE">
    <cfset temp = StructAppend(session,request.sessionvar,"Yes")>
</cflock>

Hope that helps...

Stephen


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

Reply via email to