I have tried everything I can find on the subject but
can't seem to find how to show every session variable and
any session structure(with keys and values).
Following is latest attempt it displays variables fine
but blows on structures. I have tried IsStruct everyway but the right way. Thanks JimK
<CFLOOP COLLECTION=#SESSION# ITEM="counter">
<CFOUTPUT>
<cfif IsStruct(session[counter])>
<CFSET keysToStruct = StructKeyArray(session[counter])>
<cfset stx = #session[counter]#>
structure key name is #stx#--values follow...<br>
<CFLOOP index="i" from="1" to="#ArrayLen(keysToStruct)#">
Key#i# is #keysToStruct# Value#i# is #session[counter][keysToStruct]#<br>
</cfloop>
<cfset temp = session[counter]>
<CFSET keysToStruct = StructKeyArray(temp)>
<CFLOOP index="i" from="1" to="#ArrayLen(keysToStruct)#">
Key#i# is #keysToStruct# Value#i# is #temp[keysToStruct]#<br>
</CFLOOP>
<cfelse>
#counter# (Value - #session[counter]#)<BR>
</cfif>
</CFOUTPUT>
</CFLOOP>
can't seem to find how to show every session variable and
any session structure(with keys and values).
Following is latest attempt it displays variables fine
but blows on structures. I have tried IsStruct everyway but the right way. Thanks JimK
<CFLOOP COLLECTION=#SESSION# ITEM="counter">
<CFOUTPUT>
<cfif IsStruct(session[counter])>
<CFSET keysToStruct = StructKeyArray(session[counter])>
<cfset stx = #session[counter]#>
structure key name is #stx#--values follow...<br>
<CFLOOP index="i" from="1" to="#ArrayLen(keysToStruct)#">
Key#i# is #keysToStruct# Value#i# is #session[counter][keysToStruct]#<br>
</cfloop>
<cfset temp = session[counter]>
<CFSET keysToStruct = StructKeyArray(temp)>
<CFLOOP index="i" from="1" to="#ArrayLen(keysToStruct)#">
Key#i# is #keysToStruct# Value#i# is #temp[keysToStruct]#<br>
</CFLOOP>
<cfelse>
#counter# (Value - #session[counter]#)<BR>
</cfif>
</CFOUTPUT>
</CFLOOP>