1. cherrypy
  2. CherryPy


Robert Brewer  committed 5e63288

Added backward-compatible sessionfilter.generateSessionID.

Comments (0)

Files changed (1)

File cherrypy/filters/sessionfilter.py Modified

View file
  • Ignore whitespace
  • Hide word diff
 def generate_session_id():
     """ Return a new session_id """
     return sha.new('%s' % random.random()).hexdigest()
+generateSessionID = generate_session_id
 # Users access sessions through cherrypy.session, but we want this
 #   to be thread-specific so we use a special wrapper that forwards