How to expire session due to inactivity in Django?

后端 未结 6 1601
一整个雨季
一整个雨季 2020-11-28 00:52

Our Django application has the following session management requirements.

  1. Sessions expire when the user closes the browser.
  2. Sessions expire after a pe
6条回答
  •  有刺的猬
    2020-11-28 01:17

    django-session-security does just that...

    ... with an additional requirement: if the server doesn't respond or an attacker disconnected the internet connection: it should expire anyway.

    Disclamer: I maintain this app. But I've been watching this thread for a very, very long time :)

提交回复
热议问题