clearsessions doesn't remove file-based sessions
|Reported by:||atarkowska@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
My Django app uses file based session engine. I am currently experience issues with cleaning session files from tmp directory. Basically running clearsessions doesn't remove them at all.
I have been playing a bit with that to try various configurations and debugging Django code. Basically, get_expiry_age
https://github.com/django/django/blob/stable/1.6.x/django/contrib/sessions/backends/file.py#L90 returns cookie age rather then negative value.
That seems to be due to session_data.get('_session_expiry') being None. Is that a bug in file based session backend?
Change History (15)
comment:1 Changed 20 months ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:13 Changed 9 months ago by timgraham
- Patch needs improvement set
- Summary changed from clearsessions not remore session files from tmp to clearsessions doesn't remove file-based sessions
comment:14 Changed 4 months ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed