Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default Django session lifetime and how to change it?

Tags:

django

session

I can't find a setting for the default session lifetime in https://docs.djangoproject.com/en/1.10/ref/settings/.

I know this can be changed manually (How to expire Django session in 5minutes?).

like image 211
Siegmeyer Avatar asked Jan 12 '17 13:01

Siegmeyer


1 Answers

The setting you are looking for is SESSION_COOKIE_AGE, the default value is 1209600 which is two weeks, in seconds.

like image 188
aumo Avatar answered Sep 24 '22 13:09

aumo