Hi all, I've asked the users about this last month. Today I read the SessionMiddleware code and I think I found an answer:
settings.SESSION_SAVE_EVERY_REQUEST = True settings.SESSION_COOKIE_AGE = 20*60 # 20minutes settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = False should do what I want. I will try that, but can anybody verify this also ? Regards, Dirk -------- Original-Nachricht -------- Datum: Wed, 02 May 2007 19:29:58 +0200 Von: [EMAIL PROTECTED] An: django-users@googlegroups.com Betreff: special session-time usecase Hi all, I use django.contrib.sessions with SESSION_EXPIRE_AT_BROWSER_CLOSE=True. I need a way to expire a session on certain amount of time of inactivity in the browser. Each new request to django should retrigger the expire time. Is there a possibility to modifiy the session module or build a middleware which does this ? Regards, Dirk -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---