Commits

Sylvain Hellegouarch  committed 3c61ca0

Fixed a mistake in the previous changeset in the basesession generateSessionKey

  • Participants
  • Parent commits f7808be

Comments (0)

Files changed (1)

File cherrypy/lib/filter/sessionfilter/basesession.py

             newKey = cherrypy._cputil.getSpecialAttribute(sessionKeyFunc)()
         else:
             s = [random.choice(string.letters+string.digits) for i in xrange(50)]
-            newKey = sha.sha(s).hexdigest()
+            s.append('%s'%time.time())
+            newKey = sha.sha(''.join(s)).hexdigest()
         
         return newKey