From 5af380223a14cadcbf261fe63f2fde90802c6b0d Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 17 Oct 2012 14:33:52 -0500 Subject: [PATCH] remove excessive session saving with caching of mobile_agent --- VERSION | 2 +- gluon/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 98b824e6..d5b27e90 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.1.1 (2012-10-17 14:29:55) dev +Version 2.1.1 (2012-10-17 14:33:49) dev diff --git a/gluon/tools.py b/gluon/tools.py index 80a1924b..917d5257 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1080,7 +1080,7 @@ class Auth(object): auth.last_visit = request.now else: self.user = None - session.auth = None + if session.auth: del session.auth # ## what happens after login? self.next = current.request.vars._next