Commit 698c8dfc authored by Berker Peksag's avatar Berker Peksag Committed by Tim Graham
Browse files

Fixed #26503 -- Removed an outdated example from session docs.

parent 59523c06
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -492,15 +492,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