Task #12435 (new)
Opened 10 years ago
Last modified 10 years ago
clearsessions not remore session files from tmp — at Initial Version
Reported by: | atarkowska | Owned by: | atarkowska |
---|---|---|---|
Priority: | major | Milestone: | 5.0.3 |
Component: | Web | Version: | 5.0.2 |
Keywords: | n.a. | Cc: | python-team@…, John.Webber@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
OMERO.web uses file based session engine. Currently there is and 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.
Noticed with the changes in https://github.com/openmicroscopy/openmicroscopy/pull/2686