Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup django_sessions periodically #1584

Closed
oyvindkolbu opened this issue Sep 19, 2017 · 2 comments
Closed

Cleanup django_sessions periodically #1584

oyvindkolbu opened this issue Sep 19, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@oyvindkolbu
Copy link

django_sessions should be cleaned up regulary according to django.

Either the django-manage.py clearsessions can be added to a cronjob or have the functionality replicated in navclean.

@lunkwill42 lunkwill42 added the bug label Sep 19, 2017
@lunkwill42 lunkwill42 self-assigned this Sep 19, 2017
@lunkwill42
Copy link
Member

Since navclean has been refactored quite a bit in master, I don't want to go through the hassle of adding this functionality to 4.7.x only to have to write it all over again in the next release. Adding a cron job for django-manage.py clearsessions will probably suffice.

@lunkwill42
Copy link
Member

Well, getting django-admin to work under NAV is a pain, since NAV has a strained relationship with Django's way of doing things. We may need to reimplement after all. The django-admin implementation is here: https://github.com/django/django/blob/1.7.11/django/contrib/sessions/management/commands/clearsessions.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants