i would have a 'last_logged_in' date against a user and every time a user logs in, this timestamp is updated - once you have this time in the database, then define an offset (say 2 mins or 180 seconds) and query against the database for a count/users that are logged in..
On Tue, Jan 18, 2011 at 1:26 PM, Vikos <[email protected]> wrote: > Or if the Presence information doesn't matter... > > make a shoutbox... > > On Jan 18, 9:24 am, Gabriel Petchesi <[email protected]> wrote: > > You should look into server push technologies to get updated information > > from the clients. > http://en.wikipedia.org/wiki/Push_technologyhttp://en.wikipedia.org/wiki/Comet_(programming)<http://en.wikipedia.org/wiki/Push_technologyhttp://en.wikipedia.org/wiki/Comet_%28programming%29> > > > > As for storing user state use memcache with some locking mechanism to see > > which users are active or not. > > > > gabriel > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- ----------------------------------------------------------------- http://www.linkedin.com/in/justendoherty - LinkedIn http://www.twitter.com/phpchap - Twitter http://www.anotherwebdeveloper.com - Portfolio -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en
