> -----Original Message----- > From: Richard White [mailto:[EMAIL PROTECTED] > Sent: Friday, November 23, 2007 5:52 PM > To: CF-Talk > Subject: Logged on users > > Hi, > > i was thinking that we could customise this feature ourselves through > the onsessionstart and onsessionend methods but was wondering if there > is a way that people do generally do this.
That would work fine - at the most basic you can set a simple counter: value + 1 on session start, value - 1 on session end (make sure to zero it out on application start/end however). Personally I use a custom security system which provides this kind of information (and when and what pages were viewed by each user). Essentially a CFC instance representing each session is stored in a collection which represents "logged in users". You can gain some useful features this way (but it's overkill for what you want). For example you can easily prevent two users from logging in using the same credentials. You can fetch user information, build simple alert systems (tell all users system maintenance is happening) or modify permissions on the fly. But if all you want to know is whether somebody is "on" or not a simple counter can be implemented in minutes and should serve the purpose. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293740 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

