<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Undocumented Application scope functions</title>
	<atom:link href="http://chafic.com/2003/09/08/undocumented-application-scope-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/</link>
	<description>Technical discussion of Flex, Flash, and RIA development</description>
	<lastBuildDate>Thu, 10 Apr 2008 01:10:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sergio</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-272</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Sat, 22 May 2004 04:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-272</guid>
		<description>I need to find a way to check the presence of an already logged in user.
I may keep his status as logged in, but if the browser or the line crashes there is no way to restore its logged-in flag.
Is there any way to monitor, at least, its session to see if it is still active ? I see that there is a function that is called &quot;expired()&quot; but I can&#039;t understand how to use it.
Thanks in advance for your help.
</description>
		<content:encoded><![CDATA[<p>I need to find a way to check the presence of an already logged in user.<br />
I may keep his status as logged in, but if the browser or the line crashes there is no way to restore its logged-in flag.<br />
Is there any way to monitor, at least, its session to see if it is still active ? I see that there is a function that is called &#8220;expired()&#8221; but I can&#8217;t understand how to use it.</p>
<p>Thanks in advance for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-271</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Mon, 09 Feb 2004 17:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-271</guid>
		<description>The reflection doesn&#039;t work on the SessionScope object using the get() method ( I tried...), the last access timestamp is always updated !
If you are a bit curious and look at the java decompiled code of the SessionScope.class, you will see that all the methods allowing to set or get your session variables ( even the clone() or toString() methods) udpate the LastAccess attribute of the SessionScope object.
Sorry, no solution this way...
Regards,
Guillaume</description>
		<content:encoded><![CDATA[<p>The reflection doesn&#8217;t work on the SessionScope object using the get() method ( I tried&#8230;), the last access timestamp is always updated ! </p>
<p>If you are a bit curious and look at the java decompiled code of the SessionScope.class, you will see that all the methods allowing to set or get your session variables ( even the clone() or toString() methods) udpate the LastAccess attribute of the SessionScope object. </p>
<p>Sorry, no solution this way&#8230;</p>
<p>Regards,</p>
<p>Guillaume</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-270</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 07 Jan 2004 20:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-270</guid>
		<description>Ah, now I see what you mean.  Reflection won&#039;t work on the CF variables because they aren&#039;t really Java variables attached to the session object.
CF Session&#039;s extend Java&#039;s Hashtable so you should be able to use reflection to call the get() method and pass in the sesion key, which is always all uppercase when sent to get().
Sorry I don&#039;t have time to test this out now and provide a complete example, but hopefully this will get you further along.
Best regards,
Sam</description>
		<content:encoded><![CDATA[<p>Ah, now I see what you mean.  Reflection won&#8217;t work on the CF variables because they aren&#8217;t really Java variables attached to the session object.</p>
<p>CF Session&#8217;s extend Java&#8217;s Hashtable so you should be able to use reflection to call the get() method and pass in the sesion key, which is always all uppercase when sent to get().</p>
<p>Sorry I don&#8217;t have time to test this out now and provide a complete example, but hopefully this will get you further along.</p>
<p>Best regards,</p>
<p>Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uwe Raddatz</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-269</link>
		<dc:creator>Uwe Raddatz</dc:creator>
		<pubDate>Wed, 07 Jan 2004 19:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-269</guid>
		<description>Hi Sam,
I already use reflection to call the methods as shown above. But I still do not know how to access the variables of another session without updating their last access timestamp. So what I am lookig for is some kind of &quot;field reflection&quot;. ;)</description>
		<content:encoded><![CDATA[<p>Hi Sam,</p>
<p>I already use reflection to call the methods as shown above. But I still do not know how to access the variables of another session without updating their last access timestamp. So what I am lookig for is some kind of &#8220;field reflection&#8221;. <img src='http://chafic.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-268</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 07 Jan 2004 19:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-268</guid>
		<description>Uwe,
Please read the end of the blog entry after the Update notice.  You need to use reflection to call some methods so as not to affect the outcome.  Example code is above.
Sam</description>
		<content:encoded><![CDATA[<p>Uwe,</p>
<p>Please read the end of the blog entry after the Update notice.  You need to use reflection to call some methods so as not to affect the outcome.  Example code is above.</p>
<p>Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uwe Raddatz</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-267</link>
		<dc:creator>Uwe Raddatz</dc:creator>
		<pubDate>Wed, 07 Jan 2004 19:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-267</guid>
		<description>How can I access session variables to avoid updating last access timestamp?</description>
		<content:encoded><![CDATA[<p>How can I access session variables to avoid updating last access timestamp?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tongwen</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-266</link>
		<dc:creator>tongwen</dc:creator>
		<pubDate>Mon, 22 Dec 2003 04:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-266</guid>
		<description>Sam,
When I use structkeyexists to access the structure returned by tracker.getSessionCollection(application.applicationName), it seems update the last access timestamp for every elements in the structure.
But I dont know how to use reflection to solve this problem since structkeyexists is a cf fuction.
Please give me a hint!
Thanks!</description>
		<content:encoded><![CDATA[<p>Sam,</p>
<p>When I use structkeyexists to access the structure returned by tracker.getSessionCollection(application.applicationName), it seems update the last access timestamp for every elements in the structure.</p>
<p>But I dont know how to use reflection to solve this problem since structkeyexists is a cf fuction.</p>
<p>Please give me a hint!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-265</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 15 Dec 2003 18:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-265</guid>
		<description>Vijay, the AccessControlException problem was a bug in CFMX that was fixed in CFMX 6.1.  Upgrade to 6.1 and it should fix the problem.</description>
		<content:encoded><![CDATA[<p>Vijay, the AccessControlException problem was a bug in CFMX that was fixed in CFMX 6.1.  Upgrade to 6.1 and it should fix the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijay</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-264</link>
		<dc:creator>Vijay</dc:creator>
		<pubDate>Mon, 15 Dec 2003 17:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-264</guid>
		<description>I was trying to find out the no of sessions currectly active and i used this code in my .cfm page....i loaded java and refered to the class path..but i am getting
Unhandled System exception ! java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader). Java exception occurred in attempt to construct object.
error...how do i solve it....
my Code:
	function getSessions(appName) {
	var tracker = createObject(&quot;java&quot;,&quot;coldfusion.runtime.SessionTracker&quot;);
	return tracker.getSessionCollection(appName);
	}
Total Users Logged on is #nLoggedIn#</description>
		<content:encoded><![CDATA[<p>I was trying to find out the no of sessions currectly active and i used this code in my .cfm page&#8230;.i loaded java and refered to the class path..but i am getting<br />
Unhandled System exception ! java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader). Java exception occurred in attempt to construct object.<br />
error&#8230;how do i solve it&#8230;.</p>
<p>my Code:</p>
<p>	function getSessions(appName) {<br />
	var tracker = createObject(&#8220;java&#8221;,&#8221;coldfusion.runtime.SessionTracker&#8221;);<br />
	return tracker.getSessionCollection(appName);<br />
	}</p>
<p>Total Users Logged on is #nLoggedIn#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Camden</title>
		<link>http://chafic.com/2003/09/08/undocumented-application-scope-functions/comment-page-1/#comment-263</link>
		<dc:creator>Raymond Camden</dc:creator>
		<pubDate>Sun, 23 Nov 2003 20:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://rewindlife.com/?p=69#comment-263</guid>
		<description>Tyler - if we design a nice CFC to wrap this stuff up, it may be a bit easier to handle changes. As long as we can continue to get the internal stuff, we can change the inner methods and keep the external methods using the same name. Maybe I&#039;ll work on this sometime this week. :)</description>
		<content:encoded><![CDATA[<p>Tyler &#8211; if we design a nice CFC to wrap this stuff up, it may be a bit easier to handle changes. As long as we can continue to get the internal stuff, we can change the inner methods and keep the external methods using the same name. Maybe I&#8217;ll work on this sometime this week. <img src='http://chafic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

