Code

Ticket #5507: 5507.diff

File 5507.diff, 1.1 KB (added by PhiR, 6 years ago)

updated for latest revision

Line 
1Index: django/conf/global_settings.py
2===================================================================
3--- django/conf/global_settings.py      (revision 7299)
4+++ django/conf/global_settings.py      (working copy)
5@@ -278,6 +278,7 @@
6 ############
7 # SESSIONS #
8 ############
9+import tempfile
10 
11 SESSION_COOKIE_NAME = 'sessionid'                       # Cookie name. This can be whatever you want.
12 SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2               # Age of cookie, in seconds (default: 2 weeks).
13@@ -287,7 +288,7 @@
14 SESSION_SAVE_EVERY_REQUEST = False                      # Whether to save the session data on every request.
15 SESSION_EXPIRE_AT_BROWSER_CLOSE = False                 # Whether sessions expire when a user closes his browser.
16 SESSION_ENGINE = 'django.contrib.sessions.backends.db'  # The module to store session data
17-SESSION_FILE_PATH = '/tmp/'                             # Directory to store session files if using the file session module
18+SESSION_FILE_PATH = tempfile.gettempdir()               # Directory to store session files if using the file session module
19 
20 #########
21 # CACHE #