From c9d69c02195b80c90ed621a36c46d9f44cdd85fd Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Wed, 21 Aug 2013 12:11:09 +0200 Subject: [PATCH 1/2] session id null on cookieless client. --- gluon/globals.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gluon/globals.py b/gluon/globals.py index 884aac6b..6608ff82 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -880,7 +880,9 @@ class Session(Storage): if response.session_new: return # Get session data out of the database - (record_id, unique_key) = response.session_id.split(':') + if response.session_id is None: + return + (record_id, unique_key) = response.session_id.partition(':') if record_id.isdigit() and long(record_id)>1: new_unique_key = web2py_uuid() From 6a297d854b55b5acd2fee3e91f788e396fea07da Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Wed, 21 Aug 2013 12:56:49 +0200 Subject: [PATCH 2/2] error on partition usage fixed --- gluon/globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/globals.py b/gluon/globals.py index 6608ff82..4413717a 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -882,7 +882,7 @@ class Session(Storage): # Get session data out of the database if response.session_id is None: return - (record_id, unique_key) = response.session_id.partition(':') + (record_id, sep, unique_key) = response.session_id.partition(':') if record_id.isdigit() and long(record_id)>1: new_unique_key = web2py_uuid()