On Tue, Nov 16, 2010 at 7:40 PM, Alex s <[email protected]> wrote: > Hi, > > I am planning to limit the number of users logged online in my application. > > How can I do it? > > Thanks > Alex
There is no "logged in" state for a user. You will have to store user IDs and the last time a request came in for that user, then judge how long they must be inactive before they're considered "logged out," and then you'll have to revoke their session so they can't continue to user their non-expired session if the number of users is at its limit. Shawn -- You received this message because you are subscribed to the Google Groups "Django 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/django-users?hl=en.

