Attachment 'session.patch'

Download

   1 diff -r 2c025e231b5f MoinMoin/web/session.py
   2 --- a/MoinMoin/web/session.py	Sat Jan 16 07:01:45 2010 +0300
   3 +++ b/MoinMoin/web/session.py	Sat Jan 16 15:41:05 2010 +0100
   4 @@ -202,7 +202,7 @@
   5              # add some info about expiry to the sessions, so we can purge them:
   6              session['expires'] = cookie_expires
   7  
   8 -            if session.should_save:
   9 +            if session.should_save and ('trail' in session and len(session['trail']) > 1 or 'user.id' in session):
  10                  # note: currently, every request of a logged-in user will save
  11                  # the session, even when always requesting same page. As we
  12                  # store the page trail into the session, we would save rather

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2010-01-16 14:41:21, 0.7 KB) [[attachment:session.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.