CFLib.org – Common Function Library Project

getSessionList(appname)

Last updated December 06, 2006

author

Bobby Hartsfield

Version: 3 | Requires: CF6 | Library: UtilityLib

Description:
In order for this tag to work, you need an application name using cfapplication defined in the ColdFusion MX Server.

Return Values:
Returns a struct.

Example:

<cfdump var="#getSessionList(application.applicationname)#">

Parameters:

Name Description Required
appname Application name. Yes

Full UDF Source:

/**
 * Gets all the session keys and session ids for an application.
 * v1 by Rupert de Guzman (rndguzmanjr@yahoo.com)
 * 
 * @param appname      Application name. (Required)
 * @return Returns a struct. 
 * @author Bobby Hartsfield (bobby@acoderslife.com) 
 * @version 3, December 5, 2006 
 */
function getSessionList(appname){
    var obj = CreateObject("java","coldfusion.runtime.SessionTracker");
    return obj.getSessionCollection(appname);
}

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson