Here it is again without the loop just for the sake of archive searches.
<cfscript>
function getSessionTimeout(appName)
{
var i = 1;
var sessionTiemOutValue = 'Unkown';
var tracker =
createObject("java","coldfusion.runtime.SessionTracker");
var sessions = tracker.getSessionCollection(appName);
if (listlen(structKeyList(sessions)))
{
sessionTimeoutValue =
sessions[listFirst(structKeyList(sessions))].getMaxInactiveInterval();
}
return sessionTimeoutValue;
}
</cfscript>
<cfdump var="#getSessionTimeOut(application.applicationName)#">
PS... The returned value is either 'Unkonw' or the number of seconds.
Thanks again for your input barney.
Cheers
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303935
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4