How can you list out all the Session variables in an Application?
2502
17-May-2011
Updated on 23-Sep-2020
Anonymous User
17-May-2011use cfdump to show entire session value in Development environment.
view plaincopy to clipboardprint?
<cfdump var="#session#">
Session variables are in stored in structure format. So you loop through the collection to show the session variables.
view plaincopy to clipboardprint?
<cfoutput><cfloop collection=#session# item="key">
#key# : #structFind(session,key)#
cfloop>cfoutput>