Ticket #5507: 5507.diff
File 5507.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/conf/global_settings.py
278 278 ############ 279 279 # SESSIONS # 280 280 ############ 281 import tempfile 281 282 282 283 SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want. 283 284 SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks). … … 287 288 SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request. 288 289 SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether sessions expire when a user closes his browser. 289 290 SESSION_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 module291 SESSION_FILE_PATH = tempfile.gettempdir() # Directory to store session files if using the file session module 291 292 292 293 ######### 293 294 # CACHE #