clearsessions doesn't remove file-based sessions
|Reported by:||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,
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:13 Changed 21 months ago by
|Patch needs improvement:||set|
|Summary:||clearsessions not remore session files from tmp → clearsessions doesn't remove file-based sessions|