I'm not sure if there's a security reason for this (I can't think of one),
but even if there is, it would make sense to add a warning during startup
if `SESSION_COOKIE_AGE > CSRF_COOKIE_AGE`.
--
Ticket URL: <https://code.djangoproject.com/ticket/32757>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Carlton Gibson):
Hi Luke.
Can I ask you to spell out this in a test case or sample project:
> Django won't issue a new CSRF token once it expires if the user still
has a valid session cookie
Initially that would sound like a bug, but there could be lots going on,
and I'm imagining it would be quicker for you to narrow it down to the
exact reproduce.
Example in hand it's much easier to look at.
Thanks! 🙂
--
Ticket URL: <https://code.djangoproject.com/ticket/32757#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
Hi Carlton,
Thanks for getting back! I went to create a minimal repro, and it turns
out that it actually is working correctly. My site seems to be
experiencing this issue because of the way it is interacting with Django
REST Framework. In any case, Django is all set, thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/32757#comment:2>
Comment (by Carlton Gibson):
Thanks for the follow-up Luke 👍
--
Ticket URL: <https://code.djangoproject.com/ticket/32757#comment:3>