My Django Settings.py like that:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
#'LOCATION': os.environ['MEMCACHED']
'LOCATION': "127.0.0.1",
#"BINARY" : True,
},
}
SESSION_SAVE_EVERY_REQUEST = True
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_COOKIE_AGE = 0
I store my sessions on memcached. But, the cache expire time allway 300s!!
As django document, they say SESSION_COOKIE_AGE = 0 means never timeout, but it no used for the cache timeout?
So, now i want make the session cache never timeout until browser close?
Do not tell me only set SESSION_EXPIRE_AT_BROWSER_CLOSE, because i store the sessions in memcached, the cache has a expire time too.I want the cache never expire.
Thanks.