Home > DeveloperSection > Interviews > How can you list out all the Session variables in an Application?

Posted on    May-17-2011 2:26 AM

 Cold Fusion Cold Fusion 
Ratings:
 1 Answer(s)
  1242  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    May-17-2011 12:00 AM

use 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> 


Don't want to miss updates? Please click the below button!

Follow MindStick