......

Which is essentially what I suggested without the use of node.js

On Wed, Jan 19, 2011 at 3:12 PM, Justen Doherty <[email protected]> wrote:

> ah yes, it helps when you read the full thread!
>
> in that case i would code it using node.js as a streaming socket server and
> get clients to login/update their heartbeat status using the client side!
>
>
> On Wed, Jan 19, 2011 at 12:56 PM, strycore <[email protected]> wrote:
>
>> Hi,
>>
>> I have implemented such a thing in a symfony project using APE Project
>> ( http://www.ape-project.org/ ).
>> I tink APE has all the features you require, and it can show an up to
>> date user list (the default timeout
>> for a user leaving the website is something like 30 seconds, and
>> that's the worse case, if you don't detect
>> leaving users).
>>
>> On Wed, Jan 19, 2011 at 1:47 PM, Gareth McCumskey <[email protected]>
>> wrote:
>> > The requirement was to show a person as online for an IM chat client
>> type
>> > scenario so that as soon as possible after he leaves the page or closes
>> > browser or logs out other people "People Online List" will be updated
>> > correctly
>> >
>> > On Wed, Jan 19, 2011 at 1:14 PM, Justen Doherty <[email protected]>
>> wrote:
>> >>
>> >> true - but the requirement is for logged in users only, if you had a
>> >> reason for a user to stay on the same page for more than say, five
>> minutes,
>> >> then you would need an ajax heartbeat to update the timestamp
>> >>
>> >> we would have to understand the application a bit more rather than
>> >> providing technical solutions
>> >>
>> >> On Wed, Jan 19, 2011 at 10:46 AM, Gareth McCumskey <
>> [email protected]>
>> >> wrote:
>> >>>
>> >>> 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 <[email protected]>
>> >>> 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 <[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]<symfony-users%[email protected]>
>> >>>> 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 [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]<symfony-users%[email protected]>
>> >> 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 [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
>> >
>>
>> --
>> 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]<symfony-users%[email protected]>
> 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 [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

Reply via email to