Changeset 3570
- Timestamp:
- 08/12/06 01:02:28 (2 years ago)
- Files:
-
- django/trunk/django/conf/global_settings.py (modified) (1 diff)
- django/trunk/django/contrib/sessions/middleware.py (modified) (1 diff)
- django/trunk/docs/sessions.txt (modified) (1 diff)
- django/trunk/docs/settings.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/conf/global_settings.py
r3407 r3570 253 253 SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks). 254 254 SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie. 255 SESSION_COOKIE_SECURE = False # Whether the session cookie should be secure (https:// only). 255 256 SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request. 256 257 SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether sessions expire when a user closes his browser. django/trunk/django/contrib/sessions/middleware.py
r3113 r3570 89 89 datetime.datetime.now() + datetime.timedelta(seconds=settings.SESSION_COOKIE_AGE)) 90 90 response.set_cookie(settings.SESSION_COOKIE_NAME, session_key, 91 max_age=max_age, expires=expires, domain=settings.SESSION_COOKIE_DOMAIN) 91 max_age=max_age, expires=expires, domain=settings.SESSION_COOKIE_DOMAIN, 92 secure=settings.SESSION_COOKIE_SECURE or None) 92 93 return response django/trunk/docs/sessions.txt
r3295 r3570 246 246 The name of the cookie to use for sessions. This can be whatever you want. 247 247 248 SESSION_COOKIE_SECURE 249 --------------------- 250 251 **New in Django development version** 252 253 Default: ``False`` 254 255 Whether to use a secure cookie for the session cookie. If this is set to 256 ``True``, the cookie will be marked as "secure," which means browsers may 257 ensure that the cookie is only sent under an HTTPS connection. 258 248 259 SESSION_EXPIRE_AT_BROWSER_CLOSE 249 260 ------------------------------- django/trunk/docs/settings.txt
r3337 r3570 648 648 See the `session docs`_. 649 649 650 SESSION_COOKIE_SECURE 651 --------------------- 652 653 **New in Django development version** 654 655 Default: ``False`` 656 657 Whether to use a secure cookie for the session cookie. If this is set to 658 ``True``, the cookie will be marked as "secure," which means browsers may 659 ensure that the cookie is only sent under an HTTPS connection. 660 See the `session docs`_. 661 650 662 SESSION_EXPIRE_AT_BROWSER_CLOSE 651 663 -------------------------------
