diff --git a/pandora/app/views.py b/pandora/app/views.py index c78f5e488..5601b095b 100644 --- a/pandora/app/views.py +++ b/pandora/app/views.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 import copy +from datetime import datetime from django.shortcuts import render_to_response, redirect from django.template import RequestContext @@ -159,6 +160,7 @@ def init(request): response['data']['site'] = config response['data']['user'] = init_user(request.user, request) + request.session['last_init'] = str(datetime.now()) return render_to_json_response(response) actions.register(init) diff --git a/pandora/settings.py b/pandora/settings.py index c81b31358..c36cba898 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -190,6 +190,7 @@ USE_IMDB = False VIDEO_PREFIX='' #VIDEO_PREFIX='videoPART.example.com' #SESSION_COOKIE_DOMAIN=*.example.com" +SESSION_COOKIE_AGE=60*24*60*60 SCRIPT_ROOT = normpath(join(PROJECT_ROOT, '..', 'scripts')) #change script to customize