How to expire session due to inactivity in Django?

后端 未结 6 1616
一整个雨季
一整个雨季 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:42

    also you can use stackoverflow build in functions

    SESSION_SAVE_EVERY_REQUEST = True
    

提交回复
热议问题