django tracking recent online users

admin

Administrator
Staff member
Is there any way to track active users in django?

I have seen a few online solutions to the problem:

<a href="http://magicpc.wordpress.com/2009/09/22/get-online-users-in-django/" rel="nofollow noreferrer">http://mpcabd.igeex.biz/get-online-users-in-django/</a>

being one of those. But it seems rather odd to modify the model structure just to solve this simple problem. I would like to know if there is any quick solution around.

The last_login field in django auth is also not of much use since it only records the time when a user logs in and the field is not updated if the user has been in session for a long time