Matthew Williams wrote: > There's a really nifty feature in vBulletin, mySpace, etc. that shows a user > as being "online now". Does anyone have an ideas how to pull this off in > ColdFusion? My users are logged in with various information being thrust > into the session scope. I'm thinking I'll need to run scheduled task every > 5-10 minutes that checks for a users logged in status, and then updating a > table. Or, maybe there's an easier way?
It's been a really long time since I've done that, but when we did it was essentially updating a "last action" datastamp in the user table each time they hit a page. Then, for the users online page, we'd just query the table for all users with actions in the last X minutes or see if lastAction was within X minutes if we needed to know if a specific user was on. Simple, but effective. -- Justin Scott | GravityFree Network Administrator 1960 Stickney Point Road, Suite 210 Sarasota | FL | 34231 | 800.207.4431 941.927.7674 x115 | f 941.923.5429 www.GravityFree.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316769 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

