Re: Limit number of concurrent non-admin/non-superuser users

2010-12-16 Thread Stodge
I added an ajax call to log the user out when they close the browser. It works in Firefox and Chrome but is this an acceptable/safe practice? I experimented with SESSION_SAVE_EVERY_REQUEST=True SESSION_COOKIE_AGE = 300 which works but I can't guarantee that requests are sent frequently enough to

Re: Limit number of concurrent non-admin/non-superuser users

2010-12-10 Thread Daniel Roseman
On Dec 10, 3:07 pm, Stodge wrote: > I'm trying to limit the number of concurrent users attached to my > Django website. For example I need to implement a floating license > system. I've seen a few snippets but so far I think they all implement > a middleware. I'm trying to avoid using a middleware

Limit number of concurrent non-admin/non-superuser users

2010-12-10 Thread Stodge
I'm trying to limit the number of concurrent users attached to my Django website. For example I need to implement a floating license system. I've seen a few snippets but so far I think they all implement a middleware. I'm trying to avoid using a middleware because I don't want the overhead on every