changeset 1937:8c594a7ca625

fix bug with removing sessions via the cookie secret LRU list code
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 04 Apr 2007 00:31:48 +0200
parents adcdb9cc9258
children 9801a267ab17
files MoinMoin/auth/__init__.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/__init__.py	Wed Apr 04 00:24:05 2007 +0200
+++ b/MoinMoin/auth/__init__.py	Wed Apr 04 00:31:48 2007 +0200
@@ -79,6 +79,7 @@
         # user_dir in a farm work properly
         cache_name = sha(userid + request.cfg.user_dir).hexdigest()
         self.ce = CacheEntry(request, 'ussc', cache_name, 'farm', use_pickle=True)
+        self.request = request
 
     def _get(self):
         """Internal: get string dict and LRU list from cache"""
@@ -117,7 +118,7 @@
             while secidx in lru:
                 secidx = random.randint(0, MAX_STORED_SECRETS*5)
         for idx in lru[MAX_STORED_SECRETS-1:]:
-            data = SessionData(secrets[idx])
+            data = SessionData(self.request, secrets[idx])
             data.delete()
             del secrets[idx]
         lru = lru[:MAX_STORED_SECRETS-1]