changeset 4232:42352c0b2a51

Don't send session cookie when session was already established
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 20 Jul 2008 01:50:39 +0200
parents a29fd3a9e91f
children 1c412625fdda
files MoinMoin/web/session.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/session.py	Sun Jul 20 01:48:20 2008 +0200
+++ b/MoinMoin/web/session.py	Sun Jul 20 01:50:39 2008 +0200
@@ -81,6 +81,8 @@
 
         if session.should_save:
             self.store.save(session)
+
+        if session.new:
             cookie_lifetime = request.cfg.cookie_lifetime * 3600
             cookie_expires = time.time() + cookie_lifetime
             cookie = dump_cookie(self.cookie_name, session.sid,