HOW CAN YOU LIST OUT ALL THE SESSION VARIABLES IN AN APPLICATION?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
 1442  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    How can you list out all the Session variables in an Application?

    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> 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!