id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 9548 Cache Backend for Sessions doesn't handle Empty Session State kevin.a.stone@… nobody "The exists method in the SessionStore in the cache backend's test returns a session does not exist if nothing is stored in the session. I'm am trying to develop a site that just uses the SessionMiddleware to track visitors and doesn't actually store anything in the session. This will potential create collisions with existing visitors since exists() will return that the newly generated session key is available when it actually is not... Change from: {{{ def exists(self, session_key): if self._cache.get(session_key): return True return False }}} To: {{{ def exists(self, session_key): if self._cache.has_key(session_key): return True return False }}} " closed contrib.sessions 1.0 fixed Accepted 0 0 0 0 0 0