From c9d69c02195b80c90ed621a36c46d9f44cdd85fd Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Wed, 21 Aug 2013 12:11:09 +0200 Subject: [PATCH] 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()