> Any help. > > How can you, from one central point manage Session > variables? Example, I make use of the session variable > 'Operator'. From a global file, I need to assess how many > instances of the 'Operator' session variables are in > existance and retrieve a list of their corresponding > values. > > Please help.............
I believe there's a custom tag to do this on the developer's exchange... Check out http://devex.macromedia.com and do a search for "session" or "manage sessions"... I think this is the one I saw before: "performs following session administration tasks: retrieve/sort/search/filter active sessions, kill selected sessions, limit number of sessions, block all new logins (so that you can wait until the last active session terminates, and then perform shutdown), remove expired sessions. (see admin example) (New) " http://devex.macromedia.com/developer/gallery/info.cfm?ID=AE230230-45FF-11D4 -AA9800508B94F380&method=Full Although it may be easier / less invasive to copy the operator session variables to a structure in the application scope... i.e. <cfset session.userid = myquery.operator_id> <cfset session.operator = myquery.operator> <cfparam name="application.operators" type="structure" default="#structnew()#"> <cfset application.operators[myquery.operator_id] = myquery.operator> Then you can analyze the application variables fairly easily... <cfoutput> Operators: <cfloop index="x" list="#structkeylist(application.operators)#"> <div>#application.operators[x]#</div></cfloop> Total: #ListLen(StructKeyList(application.operators))# </cfoutput> And of course remember on CF 5 and before that you need to lock those application and session scope variables... hth Isaac Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

