Would this do the trick? SESSION_EXPIRE_AT_BROWSER_CLOSE = True
I am still kinda new to django, about a month now. :) On Monday, March 4, 2013 2:11:50 PM UTC-5, Shawn Milochik wrote: > > On Mon, Mar 4, 2013 at 2:05 PM, frocco <[email protected] <javascript:>> > wrote: > > So are you saying the best I can do is show users that logged in xx > minutes > > ago, even through they may have logged off? > > Actually, yes. Because most users never log out. They just close their > browsers. So even if you did look at the session data it wouldn't > represent reality. > > You could get fancy and log the timestamp of the last request of every > user with middleware and compare it to your session timeout. Of course > that still wouldn't know when people closed their browsers when before > their sessions expired, but it should capture users active beyond the > session timeout. > > Shawn > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

