Jim Curran wrote:
>
> 1) copy the session structure to a temporary local structure in
> Application.cfm:
>
> <cflock ...>
> <cfset session_temp = structcopy(session)>
> </cflock>
>
> 2) Reference the temp structure in all templates:
>
> <cfif isdefined("session_temp.blah")>... </cfif>
>
> 3) Set the session struct equal to the temp struct in OnRequestEnd.cfm
>
> <cflock ...>
> <cfset session = structcopy(session_temp)>
> </cflock>
Use Duplicate() instead of StructCopy() because StructCopy() doesn't
copy as many levels as it should.
Jochem
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
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