summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2012-07-05 18:09:48 +0300
committerAnssi Kääriäinen <akaariai@gmail.com>2012-07-16 20:57:55 +0300
commitaeda55e6bffc3cfbf53698af398a19c1a0f02d46 (patch)
treed67c6c7afef8489d3f59be579e5c31c610c28579 /docs
parentbebbbb7af096ecffc0d7585617fdfacb196bc7c2 (diff)
Fixed #3881 -- skip saving session when response status is 500
Saving session data is somewhat likely to lead into error when the status code is 500. It is guaranteed to lead into error if the reason for the 500 code is query error on PostgreSQL.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.5.txt6
-rw-r--r--docs/topics/http/sessions.txt3
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt
index 4275fbae52..b863d102ec 100644
--- a/docs/releases/1.5.txt
+++ b/docs/releases/1.5.txt
@@ -177,6 +177,12 @@ autocommit behavior was never restored. This bug is now fixed in 1.5. While
this is only a bug fix, it is worth checking your applications behavior if
you are using PostgreSQL together with the autocommit option.
+Session not saved on 500 responses
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Django's session middleware will skip saving the session data if the
+response's status code is 500.
+
Miscellaneous
~~~~~~~~~~~~~
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
index a32d9b54dd..1f55293413 100644
--- a/docs/topics/http/sessions.txt
+++ b/docs/topics/http/sessions.txt
@@ -423,6 +423,9 @@ cookie will be sent on every request.
Similarly, the ``expires`` part of a session cookie is updated each time the
session cookie is sent.
+.. versionchanged:: 1.5
+ The session is not saved if the response's status code is 500.
+
Browser-length sessions vs. persistent sessions
===============================================