Skip to content

Commit

Permalink
Stop using PickleSerializer for sessions
Browse files Browse the repository at this point in the history
The default/implicit fallback has been JSONSerializer since after Django
1.6. The oldest docs I could find was for 1.8:

https://docs.djangoproject.com/en/1.8/topics/http/sessions/#session-serialization

PickleSerializer has been deprecated since Django 4.1 and was removed in
Django 5.0.
  • Loading branch information
hmpf committed Mar 5, 2024
1 parent c5366d6 commit 95fe30d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/nav/django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
'django.contrib.messages.middleware.MessageMiddleware',
)

SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
SESSION_COOKIE_AGE = int(_webfront_config.get('sessions', {}).get('timeout', 3600))
SESSION_COOKIE_NAME = 'nav_sessionid'
Expand Down

0 comments on commit 95fe30d

Please sign in to comment.