I'm the only one accessing my development equipment at the moment (only one in 
2 days to have as well), and the below code shows 3 connected sessions.


>Julio,
>
>There is a much easier way to count sessions, here is some simple code
>=)
>
><cfapplication name="your_application_name">
>
><cfscript>
>sessiontrackerObj=
>createObject("java","coldfusion.runtime.SessionTracker");
>activesessions =
>sessiontrackerObj.getSessionCollection(application.applicationname);
>nosessions=ListLen(structkeyList(activeSessions));
></cfscript>
><cfoutput>
><h3>Total Sessions : #nosessions#</h3>
></cfoutput>
>
>
> - Chris Peterson

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275939
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to