Alright.  I'm stumped.  Our application uses session variables, and I'm
trying to bridge the gap with CF and ASP through client variables stored in
the database - I'll loop through them in my global.asa file to parse them
out.  I have a script here that converts session to client variables, but I
have an array as a with a session scope, which cannot be converted to a
client variable.  Don't really need the array as a client variable anyways,
so I'd like to skip over it.

Here's the problem.  I loop through session variables, and I get myVar.  I'd
like to use the isArray function, but I can't use quotes around the variable
name in the isArray function.  

I've also tried using cftry, but that fails as well.

Anyone got any ideas here's a copy of the code.  The second line is the one
being a pain...?

<cfloop collection="#session#" item="myVar">
                <cfif not isArray("session." & "#myvar#")>
                <cfset "CLIENT.SESSION.#myVar#" = #evaluate("session." &
"#myvar#")#>
                </cfif>
</cfloop>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to