diff --git a/python/nav/django/settings.py b/python/nav/django/settings.py index d9aacb4ef5..a4a6e2a2f3 100644 --- a/python/nav/django/settings.py +++ b/python/nav/django/settings.py @@ -135,7 +135,7 @@ 'django.contrib.messages.middleware.MessageMiddleware', ) -SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' +SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' SESSION_ENGINE = 'django.contrib.sessions.backends.db' SESSION_COOKIE_AGE = int(_webfront_config.get('sessions', {}).get('timeout', 3600)) SESSION_COOKIE_NAME = 'nav_sessionid'