changeset 1939:d5ac6f9a13d4

fix bug in the previous commit
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 04 Apr 2007 01:01:26 +0200
parents 9801a267ab17
children dfc2a5155c42 0612584310a0
files MoinMoin/auth/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/__init__.py	Wed Apr 04 00:55:57 2007 +0200
+++ b/MoinMoin/auth/__init__.py	Wed Apr 04 01:01:26 2007 +0200
@@ -302,7 +302,7 @@
     if session:
         session.rename(secret)
     else:
-        session = SessionData(request, secret, maxage)
+        session = SessionData(request, secret, expires)
     request.session = session
 
 def deleteCookie(request, cookie_name):
@@ -328,8 +328,8 @@
     if not hasattr(request.cfg, 'anonymous_cookie_lifetime'):
         return
     lifetime = request.cfg.anonymous_cookie_lifetime * 3600
-    request.session = SessionData(request, session_name, lifetime)
     expires = time.time() + lifetime
+    request.session = SessionData(request, session_name, expires)
     setCookie(request, MOIN_SESSION, session_name, lifetime, expires)