clearsessions not remore session files from tmp
|Reported by:||atarkowska@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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 (10)
comment:1 Changed 8 months ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset