David Gardner wrote:
> Dave, are you saying that it is NOT best practice, unnecessary in MX,
> and a bad idea in previous versions....
> 
> to (at beginning of script) copy your session structures to the
> request scope, utilize them from the request scope during processing,
> and then copy them back to session at the end?

Imagine the following scenario:
- request A arrives at the server, copies the persistent information from the 
session to the request and starts a long query;
- user gets impatient and clicks some other link;
- request B arrives at the server, copies the persistent information from the 
session to the request and starts processing;
- request B does something that is supposed to be persistent;
- request B is ready and writes its data back to the session;
- request A is finally ready and writes its data back to the session, 
overwriting the changes request A just made.


> You thinking that's wrong seems to fly in the face of pretty much
> everything I've ever read on the subject.

Depends on your definition of wrong. I do not think it is wrong if other people 
do that and then call us in to clean up the mess :)

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268200
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to