Branch: refs/heads/master
  Home:   https://github.com/django/django
  Commit: cd17a24083f3ef17cf4c40a41c9d03c250d817c6
      
https://github.com/django/django/commit/cd17a24083f3ef17cf4c40a41c9d03c250d817c6
  Author: Aymeric Augustin <aymeric.augus...@m4x.org>
  Date:   2012-10-27 (Sat, 27 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:
  -----------
  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).


  Commit: 882c47cd405cfd29194f2e968678a5aa1d6ec75f
      
https://github.com/django/django/commit/882c47cd405cfd29194f2e968678a5aa1d6ec75f
  Author: Aymeric Augustin <aymeric.augus...@m4x.org>
  Date:   2012-10-27 (Sat, 27 Oct 2012)

  Changed paths:
    M django/contrib/sessions/tests.py

  Log Message:
  -----------
  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.


  Commit: 5fec97b9df6ea075483276de159e522a29437773
      
https://github.com/django/django/commit/5fec97b9df6ea075483276de159e522a29437773
  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:
  -----------
  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.


Compare: https://github.com/django/django/compare/fc2681b22b12...5fec97b9df6e

-- 
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.


Reply via email to