Mercurial > public > sg101
diff gpp/settings.py @ 189:db202792d9f5
Explicitly set session settings. Use the cache_db engine. Some minor tweaks to reduce some queries in forums.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 01 Apr 2010 01:39:37 +0000 |
parents | d293b423bdaf |
children | 6a5549c2efb5 |
line wrap: on
line diff
--- a/gpp/settings.py Wed Mar 31 01:58:20 2010 +0000 +++ b/gpp/settings.py Thu Apr 01 01:39:37 2010 +0000 @@ -177,6 +177,19 @@ #CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY ####################################################################### +# Sessions +####################################################################### +#SESSION_ENGINE = "django.contrib.sessions.backends.db" +SESSION_ENGINE = "django.contrib.sessions.backends.cached_db" +SESSION_COOKIE_AGE = 2 * 7 * 24 * 60 * 60 # 2 weeks in seconds +SESSION_COOKIE_DOMAIN = None +SESSION_COOKIE_NAME = 'sg101_sessionid' +SESSION_COOKIE_PATH = '/' +SESSION_COOKIE_SECURE = False +SESSION_EXPIRE_AT_BROWSER_CLOSE = False +SESSION_SAVE_EVERY_REQUEST = False + +####################################################################### # Tagging Specific Settings ####################################################################### FORCE_LOWERCASE_TAGS = True