Adobe ColdFusion 8

Getting a list of session variables

Use the StructKeyList function to get a list of session variables, as follows:

<cflock timeout=20 scope="Session" type="Readonly">
    <cfoutput> #StructKeyList(Session)# </cfoutput>
</cflock>

Important: Always put code that accesses session variables inside cflock tags.