Andy Ewings wrote:
> 2 questions:
> 
> 1.  Can you store query resultsets in session vars?
> 1.  Do you have to lock session vars in CFMX?
> 
> I am pretty sure the answer to 1. is yes but cannot remember the answer to
> 2.

I don't see a question 2 :)


Yes, you can store queries in session variables.

No, you don't need to lock session variables for memory integrity.
Yes, you do need to lock session variables for race conditions.


Race conditions occur when operations are performed in an unexpected 
order. An example would be 2 pages, 1 with the code:
for (session.i = 1; session.i LTE 10000 ; session.i = session.i + 1) {
     do something
     }
And another one with the code
for (session.i = 10000; session.i GTE 1 ; session.i = session.i - 1) {
     do something
     }
Run them at the same time and if the loops equally fast the loops will 
run forever.

Jochem

______________________________________________________________________
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