changeset 433:724d2d6a8fa1

make cookie_lifetime behaviour more sane imported from: moin--main--1.5--patch-437
author Thomas Waldmann <tw@waldmann-edv.de>
date Thu, 09 Feb 2006 18:32:19 +0000
parents 70d97ff00d7f
children b8337d7318d4
files ChangeLog MoinMoin/auth.py docs/CHANGES
diffstat 3 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 05 18:55:57 2006 +0000
+++ b/ChangeLog	Thu Feb 09 18:32:19 2006 +0000
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-02-09 19:32:19 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-437
+
+    Summary:
+      make cookie_lifetime behaviour more sane
+    Revision:
+      moin--main--1.5--patch-437
+
+    make cookie_lifetime behaviour more sane
+    
+
+    modified files:
+     ChangeLog MoinMoin/auth.py docs/CHANGES
+
+
 2006-02-05 19:55:57 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-436
 
     Summary:
--- a/MoinMoin/auth.py	Sun Feb 05 18:55:57 2006 +0000
+++ b/MoinMoin/auth.py	Thu Feb 09 18:32:19 2006 +0000
@@ -75,6 +75,8 @@
         u = user.User(request, id=cookie['MOIN_ID'].value,
                       auth_method='moin_cookie', auth_attribs=())
         if u.valid:
+            request.user = u
+            request.setCookie()
             return u, False
     return None, True
 
--- a/docs/CHANGES	Sun Feb 05 18:55:57 2006 +0000
+++ b/docs/CHANGES	Thu Feb 09 18:32:19 2006 +0000
@@ -32,6 +32,14 @@
     If you want to compare, I included the output of this test run:
     $ make test >tests/make_test.out
 
+Version 1.5.current:
+  Bugfixes:
+    * cookie_lifetime didn't work comfortable for low values. The cookie was
+      created once on login and never updated afterwards. So you got logged
+      out cookie_lifetime hours later, no matter whether you were active at
+      that time or not. This has been changed, we update the cookie expiry now
+      on every request, so it will expire cookie_lifetime after your last
+      request (not after login).
 
 Version 1.5.2: