works fine for me on CFMX. I added <cfset localbasket.testvar = 2> just before the localbasket was passed back into the session - the 2nd page call cfdumps all outputted testvar within the session.basket
> -----Original Message----- > From: Douglas McKenzie [mailto:[EMAIL PROTECTED]] > Sent: 27 November 2002 14:01 > To: CF-Dev > Subject: [ cf-dev ] session disappearing > > > Hi, > > Problem is that my session keeps disappearing. Ive set the > app up with this: > > <cfapplication name="cyberdog" sessionmanagement="Yes" > setclientcookies="No" > sessiontimeout="#CreateTimeSpan(0,0,30,0)#"> > > and am using this code to read and write to the session: > > <cflock timeout="5" throwontimeout="No" type="EXCLUSIVE" > scope="SESSION"> > <!--- Create structure if it does not exist ---> > <cfif not IsDefined("session.basket")> > <cfset session.basket=StructNew()> > </cfif> > ::<cfdump var="#session.basket#">:: > <!--- Take a local copy to work with ---> > <cfset LocalBasket=#StructCopy(session.basket)#> > ::<cfdump var="#LocalBasket#">:: > </cflock> > > <cflock timeout="5" throwontimeout="No" type="EXCLUSIVE" > scope="SESSION"> > <cfset session.Basket=StructCopy(LocalBasket)> > </cflock> > ''<cfdump var="#session.basket#">'' > > Now the cfdump surrounded by '' outputs correctly but when I > reload the > page, session.basket is empty again. > > Anyone see what Im doing wrong? > > > Cheers, > Douglas McKenzie > > ---------------------------------------- > Internet Developer / Designer > [EMAIL PROTECTED] > 07984 462 516 > ---------------------------------------- > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
