summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--session.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.py b/session.py
index 9928992..0787be8 100644
--- a/session.py
+++ b/session.py
@@ -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()),