How do I determine when a user has an idle timeout in Django?

前端 未结 3 380
离开以前
离开以前 2021-01-31 13:12

I would like to audit when a user has experienced an idle timeout in my Django application. In other words, if the user\'s session cookie\'s expiration date exceeds the SESSION

3条回答
  •  有刺的猬
    2021-01-31 13:20

    SESSION_COOKIE_AGE = 1500 # 25 minutes

    Put that in your settings and that should take care of that and expire the session.

提交回复
热议问题