as an aside....
is session.basket a structure? if so you should use:
<cfset localbasket = duplicate(session.basket)>
to place back in the session use something like this:
<cfset session.basket = duplicate(localbasket)>
don't forget to lock the session variables where necessary. i.e. when
reading and writing to the session.
Cheers
TOM
----- Original Message -----
From: "Douglas McKenzie" <[EMAIL PROTECTED]>
To: "CF-Dev" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 2:01 PM
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]
__________________________________________________
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]