Re: Best way to track user presence

2010-01-15 Thread E17
I know of celery, it's a good software, but little too complicated and expensive for the task I'm asking about. I'll probably use built-in session timeout, as Shawn suggests. But I think eventually I'll come back to celery when my demands will rise as I'll have a need for delayed processing in my D

Re: Best way to track user presence

2010-01-15 Thread E17
I think you are right, the built-in session timeout would be the best and the most ideologically correct solution. Thank you) On Jan 15, 4:27 am, Shawn Milochik wrote: > Use the built-in session timeout. Probably a good idea in any case, to   > protect your data and user privacy. > > If they don'

Re: Best way to track user presence

2010-01-15 Thread David De La Harpe Golden
E17 wrote: > I wouldn't like to use cron, as running full python execution stack is > quite expensive in terms of performance. For the same reason I don't > like to run this code on [every] request handlers. > > Seems to me like better solution would be to use some outer deamon or > deamon-like p

Re: Best way to track user presence

2010-01-14 Thread Shawn Milochik
Use the built-in session timeout. Probably a good idea in any case, to protect your data and user privacy. If they don't log out, they time out. If you trust your users to have scripting enabled, you can even put a JavaScript function on a timer to sent the browser to your logout URL. It's

Re: Best way to track user presence

2010-01-14 Thread Brian Neal
On Jan 14, 7:30 pm, E17 wrote: > Hi, > > in my Django application I need a way to track logged users presence. > > User gets an 'online' status when he/she logs in and 'offline' status > when logs out, it's pretty simple. But what is the best way to handle > non-logged-out sessions? One need to pe

Best way to track user presence

2010-01-14 Thread E17
Hi, in my Django application I need a way to track logged users presence. User gets an 'online' status when he/she logs in and 'offline' status when logs out, it's pretty simple. But what is the best way to handle non-logged-out sessions? One need to periodically check all sessions on last activi