But you would need to update them not being logged in at some point. And what if they just closed their browser window without logging out? Or what if they log in and they have been surfing the site for the last two hours ... that logged in time would still stay the same....
On Tue, Jan 18, 2011 at 4:49 PM, Justen Doherty <phpc...@gmail.com> wrote: > 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 <make.webp...@gmail.com> wrote: > >> Or if the Presence information doesn't matter... >> >> make a shoutbox... >> >> On Jan 18, 9:24 am, Gabriel Petchesi <pghora...@gmail.com> 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 symfony-users@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> >> 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 symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc identi.ca: @garethmcc -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en