I saw something like this not long ago... I'm trying to remember how it
worked.

It was something like... have a table that you write a UID and the current
time into, each time a page is viewed. (Something in application.cfm I would
imagine, if your session is active at the time). This way, every user on the
site has a record in that table that is no older than the session timeout
(say, for example, 15 minutes).

So to get the "current users on the site", you query that table where the
timestamp on it is less than 15 minutes old. The only catch is folks who
just up and leave would still show "current" for the remainder of the 15
minutes. I don't recall if the solution this other guy had (that I'm
paraphrasing) dealt with that in any way or not.

Hope that helps :)
--Scott

----- Original Message -----
From: "Stephen R. Cassady" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 2:29 PM
Subject: Example/Code of "Current Users On Site"?


>
> Does anyone have a good example / code / method / approach for building a
> system for displaying the users currently on the site?
>
> I don't need the display code, but a few more examples on how to handle
the
> ?Session Variables? for such a practice, unless there is a different way?
>
> Thanks -
> Stephen Cassady
> President, Ububik new media
> [EMAIL PROTECTED]
>
> http://www.ububik.com http://www.tallylist.com http://www.spankmag.com
>
>
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to