#31229: Add setting to allow flexible session saving based on response codes
----------------------------------+--------------------------------------
     Reporter:  Vincent Wang      |                    Owner:  nobody
         Type:  New feature       |                   Status:  closed
    Component:  contrib.sessions  |                  Version:  3.0
     Severity:  Normal            |               Resolution:  wontfix
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * type:  Uncategorized => New feature
 * resolution:   => wontfix


Comment:

 Hi Vincent.

 I think I'd have to point you to a subclass here. I appreciate that the
 `500` in question is not easily overridden, but Django itself doesn't
 return other codes in the 5xx range and I think this is too niche a use-
 case to merit the API surface area.

 We could feasibly add a check method to SessionMiddleware that would
 facilitate subclassing, but I doubt there's even demand for that.
 If you like you can write to the DevelopersMailingList to see if there is
 support.

 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31229#comment:3>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.219c2258bc853dea1698469343a44ff7%40djangoproject.com.

Reply via email to