> I realize this topic may have been covered on this list a while back, but > I'm having problems locating a good answer, so here goes. Typically in our > administrative web sites, on a request, we copy over our session variables > to the request scope so we can have read-access to the information without > having to place locks all over the place.
I would suggest that you create a Session Facade and then have all your objects reference the façade. It is generally a bad idea to have an object reference an external scope (session, request, etc.), and this technique hides the implementation from your business objects. Assuming you wanted to return an 'admin' object, your objects would use a sessionFaçade.getAdminObject() and the function within the façade would look like the following (excluding locks, etc. for the sake of simplicity): function getAdminObject() { Return session.adminObject } HTH, Rich Kroll ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292254 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4