Glad that got you going. You can ask for the key list of a structure
using structKeyList, and then just pull out the first key using
listFirst.
cheers,
barneyb
On Mon, Apr 21, 2008 at 12:42 PM, Bobby Hartsfield
<[EMAIL PROTECTED]> wrote:
> Thanks again barney, your suggestion lead me down the right path. I'm just
> posting what I came up with for the sake of the archives.
>
> The only place I could find to use getMaxInactiveInterval() was on an actual
> node inside the returned structure of getSessionCollection().
>
> I don't like the loop but it works. I don't guess I've ever had the need to
> traverse a collection without a loop. Is it even possible to access the
> nodes of a collection without looping over it? It would be nice to lose the
> loop in this function:
>
> <cfscript>
> function getSessionTimeout(appName)
> {
> var i = 1;
> var sessionTiemOutValue = 'Unkown';
> var tracker =
> createObject("java","coldfusion.runtime.SessionTracker");
> var sessions = tracker.getSessionCollection(appName);
>
> for (i in sessions){
> sessionTimeoutValue =
> sessions[i].getMaxInactiveInterval();
> break;
> }
> return sessionTimeoutValue;
> }
> </cfscript>
>
> <cfdump var="#getSessionTimeOut(application.applicationName)#">
>
>
> Cheers
>
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
--
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/
Got Gmail? I have 100 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:303930
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4