mirror of
https://github.com/nsupdate-info/nsupdate.info.git
synced 2026-04-25 08:35:56 +03:00
[GH-ISSUE #381] SESSION_COOKIE_AGE #291
Labels
No labels
bug
bug
duplicate
easy
easy
enhancement
enhancement
invalid
needs help
pull-request
scalability
security
task
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsupdate.info-nsupdate-info#291
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThomasWaldmann on GitHub (Oct 18, 2018).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/381
Originally assigned to: @ThomasWaldmann on GitHub.
It seems that this setting (default: 14 days) leads to a huge amount of sessions in the session store.
After migrating the session store to the file-based backend, I did a
drop table django_session ; vacuumand the db lost 95% of its size (I also did vacuum before, so this really accounts to deleted sessions).I run
django-admin cleansessionsdaily via cron-script, but that doesn't help if a huge amount of sessions with a relatively long life-time accumulate.So, guess we should add something like
SESSION_COOKIE_AGE = 10 * 3600to the default configuration as a more sane default.