Update session settings
@@ -55,9 +55,14 @@ class CommunityBaseSettings(Settings):
DEFAULT_FROM_EMAIL = 'no-reply@readthedocs.org'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
- # Cookies
+ # Sessions
SESSION_COOKIE_DOMAIN = 'readthedocs.org'
SESSION_COOKIE_HTTPONLY = True
+ SESSION_COOKIE_AGE = 30 * 24 * 60 * 60 # 30 days
+ SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
+ SESSION_SAVE_EVERY_REQUEST = True
+
+ # CSRF
CSRF_COOKIE_HTTPONLY = True
CSRF_COOKIE_AGE = 30 * 24 * 60 * 60
