should objects held in sessions be put in session scope deep within a CFC (as a persist layer or similar) _OR_ within the mechanics of each page.
The answer is, of course, "it depends"... It depends on what data you're talking about and which part of the application 'owns' that data.
Consider an eCommerce site. You might have a service (stateless) CFC that manages the shopping cart. It's probably implemented as a session facade, i.e., it delegates operations to an instance of a (stateful) cart object in session scope. It creates the cart object if necessary, for each user's request.
A multi-page form might use session scope for storing partially completed forms - and it might not encapsulate that in a CFC (although it might be better practice to do so).
What if you want to change from sessions to cookies?
Most of the data I would be storing in session scope takes the form of CFCs so I can't store those in cookies (and, in general, I think over-reliance on cookies is bad practice - a lot of users are very sensitive about websites writing cookies to their machine).
Sean A Corfield -- http://www.corfield.org/blog/
Got Mach II? -- http://www.mach-ii.com/
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
