Browse Source

Set SESSION_COOKIE_AGE to reset session if cookie older than 2h.

Hugo Lefeuvre 10 years ago
parent
commit
3fa3ee276c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      coin/settings.py

+ 3 - 0
coin/settings.py

@@ -251,6 +251,9 @@ AUTH_LDAP_USER_FLAGS_BY_GROUP = {
 
 GRAPHITE_SERVER = "http://graphite-dev.illyse.org"
 
+# Reset session if cookie older than 2h.
+SESSION_COOKIE_AGE = 7200
+
 # Surcharge les paramètres en utilisant le fichier settings-local.py
 try:
     from settings_local import *