Ticket #4914: 4914.patch

File 4914.patch, 915 bytes (added by Chris Beaven, 17 years ago)

More neutral language

  • docs/sessions.txt

     
    190190    # request.session['foo'] instead of request.session.
    191191    request.session['foo']['bar'] = 'baz'
    192192
    193 To change this default behavior, set the ``SESSION_SAVE_EVERY_REQUEST`` setting
     193To save the session explicitly, you can set ``request.session.modified`` to
     194``True``::
     195
     196    # Session is NOT modified, so inform the session that it has changed.
     197    request.session['foo']['bar'] = 'baz'
     198    request.session.modified = True
     199
     200To change the default behavior of only saving to the session database when the
     201session has been modified, set the ``SESSION_SAVE_EVERY_REQUEST`` setting
    194202to ``True``. If ``SESSION_SAVE_EVERY_REQUEST`` is ``True``, Django will save
    195203the session to the database on every single request.
    196204
Back to Top