**********************************************************************
WESTMINSTER CITY COUNCIL
Please refer to the disclaimer beneath this message
**********************************************************************

Thanks, this is very helpful.

> ----------
> From:         Stephen Moretti[SMTP:[EMAIL PROTECTED]]
> Sent:         22 July 2002 14:59
> To:   CF-Talk
> Subject:      Re: Finding a good Session management system.
> 
> >
> > 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
> 
> 
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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