diff options
-rw-r--r-- | session.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ class Session(object): cookie = Cookie.SimpleCookie(environ['HTTP_COOKIE'] if 'HTTP_COOKIE' in environ else None) sessionid = cookie.get('sessionid') if not sessionid: - sessionid = hashlib.sha1(str(time.time) + environ['REMOTE_ADDR']).hexdigest() + sessionid = hashlib.sha1(str(time.time()) + environ['REMOTE_ADDR']).hexdigest() cookie['sessionid'] = sessionid start_response('302 Found', [ ('Set-Cookie', cookie['sessionid'].OutputString()), |