On Nov 19, 2007 4:10 PM, salimk786 <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I've seen on my sites a feature that allows you to see "Who's
> Online".
> I'd like to implement this on my cake app.
>
> Does anyone know of an existing contribution that allows users to do
> this ? If not, does anyone have a high level - conceptual  (or low
> level- code) undersstanding of how to do this ?
>
> Thanks

Quick-and-dirty way to do it:

1) use a centralized session system for your application, make it database-based
2) count the number of currently-valid records in your sessions table
3) display that count as 'number of people online'

This approach has worked for me in the past.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to