yes he does as he is accessing the session scope. ----- Original Message ----- From: "Robertson-Ravo, Neil (RX)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 2:07 PM Subject: RE: [ cf-dev ] session disappearing
> and you dont need the locks. > > -----Original Message----- > From: Douglas McKenzie [mailto:[EMAIL PROTECTED]] > Sent: 27 November 2002 14:04 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] session disappearing > > > BTW This code was working on CF5 but now Im trying it out on CFMX. > > -----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] > > -- > ** 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] __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- ** 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]
