Branch: refs/heads/stable/1.5.x Home: https://github.com/django/django Commit: 845d8408e7aa09a63c98f160b2c6bc9fa6dbb20f https://github.com/django/django/commit/845d8408e7aa09a63c98f160b2c6bc9fa6dbb20f Author: Aymeric Augustin <aymeric.augus...@m4x.org> Date: 2012-10-28 (Sun, 28 Oct 2012)
Changed paths: M django/contrib/sessions/backends/base.py M django/contrib/sessions/backends/cached_db.py M django/contrib/sessions/tests.py M docs/topics/http/sessions.txt Log Message: ----------- [1.5.x] Added optional kwargs to get_expiry_age/date. This change allows for cleaner tests: we can test the exact output. Refs #18194: this change makes it possible to compute session expiry dates at times other than when the session is saved. Fixed #18458: the existence of the `modification` kwarg implies that you must pass it to get_expiry_age/date if you call these functions outside of a short request - response cycle (the intended use case). Backport of cd17a24 from master. Commit: e6b0ee768c46368a41a5b278180d1d1ecbd3d5c6 https://github.com/django/django/commit/e6b0ee768c46368a41a5b278180d1d1ecbd3d5c6 Author: Aymeric Augustin <aymeric.augus...@m4x.org> Date: 2012-10-28 (Sun, 28 Oct 2012) Changed paths: M django/contrib/sessions/tests.py Log Message: ----------- [1.5.x] Improved tests introduced in 04b00b6. These tests are expected to fail for the file session backend because it doesn't handle expiry properly. They didn't because of an error in the test setup sequence. Refs #19200, #18194. Backport of 882c47c from master. Commit: 39082494e62d70be62cde1eb10620548fd62dfb6 https://github.com/django/django/commit/39082494e62d70be62cde1eb10620548fd62dfb6 Author: Aymeric Augustin <aymeric.augus...@m4x.org> Date: 2012-10-28 (Sun, 28 Oct 2012) Changed paths: M django/contrib/sessions/backends/base.py M django/contrib/sessions/backends/cache.py M django/contrib/sessions/backends/db.py M django/contrib/sessions/backends/file.py M django/contrib/sessions/backends/signed_cookies.py M django/contrib/sessions/management/commands/clearsessions.py M django/contrib/sessions/tests.py M docs/ref/django-admin.txt M docs/topics/http/sessions.txt Log Message: ----------- [1.5.x] Fixed #18194 -- Expiration of file-based sessions * Prevented stale session files from being loaded * Added removal of stale session files in django-admin.py clearsessions Thanks ej for the report, crodjer and Elvard for their inputs. Backport of 5fec97b from master. Compare: https://github.com/django/django/compare/c5da577b9e39...39082494e62d -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.