#16182: TimestampSigner should use a more precise timestamp
--------------------+------------------------------
 Reporter:  floguy  |          Owner:  floguy
     Type:  Bug     |         Status:  new
Milestone:          |      Component:  Core (Other)
  Version:  SVN     |       Severity:  Normal
 Keywords:          |   Triage Stage:  Unreviewed
Has patch:  1       |  Easy pickings:  0
    UI/UX:  0       |
--------------------+------------------------------
 Generating a secure cookie using the TimestampSigner within the same
 second and the same data actually generates precisely the same cookie.

 I'm currently developing a cookie-based session backend, and this line
 keeps failing as a result, because cycling the cookie isn't really cycling
 the cookie:
 
https://code.djangoproject.com/browser/django/trunk/django/contrib/sessions/tests.py#L153

 I've attached a small patch that fixes the problem by increasing the
 precision.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16182>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to