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>

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


View comments in LiveDocs