Thanks, this works great!
I really appreciate your help, as well as the responses from everyone else!
Joel
Here you go Joel, I got this code from someone else long ago, and now am
passing it on to you. =) You may store other data about them, but you
can go from here.
cfapplication
I explored these undocumented functions in detail, and I think they
have an unfortunate side effect of keeping sessions alive. Getting the
overall count is fine, but any access to any session variable updates
the last accessed time, which resets the clock when it comes to timing
out the session.
I prefer Ray's method for tracking sessions... Almost as soon as he
blogged it, I added it to CFMBB =) Right now there are 6 active
sessions, and one registered user (rickroot2)
Rick
~|
ColdFusion MX7 by AdobeĀ®
Dyncamically
It's way easier than that, and you don't have to use createObject().
Ray Camden blogged about this.
application.cfm version:
http://ray.camdenfamily.com/index.cfm/2007/3/12/Counting-Sessions-with-Applicationcfm
(This is what I use for CFMBB and some other apps)
application.cfc version:
I have a site (a forum, really) that allows users to login and post messages.
Is there a way that I can display the number of users that are currently logged
in?
Thanks!
~|
Deploy Web Applications Quickly across the
Here you go Joel, I got this code from someone else long ago, and now am
passing it on to you. =) You may store other data about them, but you
can go from here.
cfapplication name=yourApplicationName
cfscript
sessiontrackerObj=
createObject(java,coldfusion.runtime.SessionTracker);
-
From: Joel Watson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 April 2007 12:03 PM
To: CF-Talk
Subject: Display number of users online
I have a site (a forum, really) that allows users to login and
post messages. Is there a way that I can display the number of
users that are currently
7 matches
Mail list logo