Django

Code

Changeset 5869

Show
Ignore:
Timestamp:
08/12/07 05:24:21 (1 year ago)
Author:
mtredinnick
Message:

Fixed #4914 -- Documented the Session.modified attribute for forcing session saves. Thanks, Thomas Güttler and SmileyChris?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/sessions.txt

    r5140 r5869  
    191191    request.session['foo']['bar'] = 'baz' 
    192192 
     193In the last case of the above example, we can tell the session object 
     194explicitly that it has been modified by setting the ``modified`` attribute on 
     195the session object:: 
     196 
     197    request.session.modified = True 
     198 
    193199To change this default behavior, set the ``SESSION_SAVE_EVERY_REQUEST`` setting 
    194200to ``True``. If ``SESSION_SAVE_EVERY_REQUEST`` is ``True``, Django will save