session id null on cookieless client.

This commit is contained in:
Michele Comitini committed 2013-08-21 12:17:12 +02:00
1 parent d1525cf6ec
commit c9d69c0219
1 file changed
+3 -1
+3 -1
View File
@@ -880,7 +880,9 @@ class Session(Storage):
if response.session_new: if response.session_new:
return return
# Get session data out of the database # 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: if record_id.isdigit() and long(record_id)>1:
new_unique_key = web2py_uuid() new_unique_key = web2py_uuid()