Commits

dchaplinsky  committed 1ed34dd

Bug with creating of the new session on every request fixed

  • Participants
  • Parent commits 1c49e4c

Comments (0)

Files changed (1)

File redis_sessions/backends/redis.py

             except CreateError:
                 # The key wasn't unique, try again
                 continue
+            self.modified = True
             return
 
     def save(self, must_create=False):
             raise CreateError
         # The key has been set, set its expiration
         db.expire(key, self.get_expiry_age())
-        self.modified = False
 
     def delete(self, session_key=None):
         if session_key is None: