diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2016-05-31 04:21:00 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-05-31 07:21:20 -0400 |
| commit | 4dc1bf89cbc591f903af7c74c1a4480f8352d9da (patch) | |
| tree | 3b7848ee6aad5b23ad5097ba4d23a70800f8d5de | |
| parent | d4266dcaf1e75005d02b14306853bdc2f72ca481 (diff) | |
[1.9.x] Fixed #26503 -- Removed an outdated example from session docs.
Backport of 698c8dfc2a5c5865a8bb163c1ae70b75d53e6415 from master
| -rw-r--r-- | docs/topics/http/sessions.txt | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt index c74e35399d..aa0ac548c9 100644 --- a/docs/topics/http/sessions.txt +++ b/docs/topics/http/sessions.txt @@ -498,15 +498,6 @@ An API is available to manipulate session data outside of a view:: >>> s['last_login'] 1376587691 -In order to mitigate session fixation attacks, sessions keys that don't exist -are regenerated:: - - >>> from django.contrib.sessions.backends.db import SessionStore - >>> s = SessionStore(session_key='no-such-session-here') - >>> s.save() - >>> s.session_key - 'ff882814010ccbc3c870523934fee5a2' - If you're using the ``django.contrib.sessions.backends.db`` backend, each session is just a normal Django model. The ``Session`` model is defined in ``django/contrib/sessions/models.py``. Because it's a normal model, you can |
