def makeSession(self): if USE_REDIS: uid = self._mkuid() session = self.sessions[uid] = self.sessionFactory(self, uid) r.setex(get_redis_id(uid), YuzukiSession.sessionTimeout, json.dumps(dict())) return session else: return Site.makeSession(self)
def makeSession(self): player = Site.makeSession(self) return player