CFLib.org – Common Function Library Project

getSessionList(appname)

Last updated December 5, 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);
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson