extend cookie age if its still used
This commit is contained in:
parent
d3c3378267
commit
5e6b054896
2 changed files with 18 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ MIDDLEWARE_CLASSES = (
|
|||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'ox.django.middleware.ExceptionMiddleware',
|
||||
'ox.django.middleware.ChromeFrameMiddleware',
|
||||
'user.middleware.UpdateSession',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'urls'
|
||||
|
|
@ -205,6 +206,9 @@ MEDIA_PREFIX=''
|
|||
|
||||
SESSION_COOKIE_AGE=60*24*60*60
|
||||
|
||||
# Extend cookie age if session is older
|
||||
SESSION_UPDATE=24*60*60
|
||||
|
||||
SCRIPT_ROOT = normpath(join(PROJECT_ROOT, '..', 'scripts'))
|
||||
#change script to customize
|
||||
ITEM_POSTER = join(SCRIPT_ROOT, 'poster.py')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue