Ticket #5507: 5507.diff

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

updated for latest revision

  • django/conf/global_settings.py

     
    278278############
    279279# SESSIONS #
    280280############
     281import tempfile
    281282
    282283SESSION_COOKIE_NAME = 'sessionid'                       # Cookie name. This can be whatever you want.
    283284SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2               # Age of cookie, in seconds (default: 2 weeks).
     
    287288SESSION_SAVE_EVERY_REQUEST = False                      # Whether to save the session data on every request.
    288289SESSION_EXPIRE_AT_BROWSER_CLOSE = False                 # Whether sessions expire when a user closes his browser.
    289290SESSION_ENGINE = 'django.contrib.sessions.backends.db'  # The module to store session data
    290 SESSION_FILE_PATH = '/tmp/'                             # Directory to store session files if using the file session module
     291SESSION_FILE_PATH = tempfile.gettempdir()               # Directory to store session files if using the file session module
    291292
    292293#########
    293294# CACHE #
Back to Top