Either will work. Not that it matters too much but you don't need the
hashes around the variable "session.arraysize". And be sure to SET
session.arraysize. I set session.arraysize = 1 or 2 and both A and B
work. Do you have session management enabled?

Greg

-----Original Message-----
From: Nick Baker [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 10:34 PM
To: CF-Talk
Subject: Sticky Session Arrays??

Can someone help me with this code?

Either of the below doesn't want to hold session.ActiveFlag as an array.
My
goal is to get the functionality that I believe A. would provide. But, I

can't get B to work either.

Thanks,

Nick

A.
<CFIF NOT ISDEFINED("session.ActiveFlag")>
         <cfset session.ActiveFlag = ArrayNew(1)>
         <cfset temp = ArraySet(session.ActiveFlag,
1,#session.ArraySize#,
"NO")>
</CFIF>

B.

  <cfset Dummy = StructDelete(session, "ActiveFlag", TRUE)> <cfset
session.ActiveFlag = ArrayNew(1)> <cfset temp =
ArraySet(session.ActiveFlag, 1,#session.ArraySize#, "NO")>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to