To answer your core question, yes, you can set session variables inside CFCs and they'll be set just as effectively as setting them anywhere else.
I didn't quite follow what you're doing, but it sounds like you probably have a race condition somewhere. Logging is often the best way to find those, because you can see when stuff happens out of order. cheers, barneyb On Wed, Apr 29, 2009 at 1:13 PM, Rick Faircloth <[email protected]> wrote: > > I'm trying to create a "preview" setup via cf, jquery, and ajax for > a form. > > Before I get too deep into all this code, let me just ask this: > > Can I set session variables in the cfc method to the values of the > form variables and use those back on the calling page? I'm doing it > this way to prevent having to write the preview values to the database. > > I can cfdump the session and see that the session variables are > getting set to the proper values in the method, but when they > are sent back to the calling page (via a cfsavecontent method > to handle an image involved) and jquery displays them, the values > are not the current session values that were set back in the method. > > Anyone worked with this method? (I know Ben Nadel coded it and > I adapted it, but I can't figure out why this isn't working.) > > Thoughts? Suggestions? > > Thanks, > > Rick > > -- > ----------------------------------------------------------------------------------------------------------------------------------------------------------------- > "It has been my experience that most bad government is the result of too > much government." - Thomas Jefferson > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322062 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

