check that session_id exists before trying to renew session from the db

This commit is contained in:
Michele Comitini
2013-06-24 00:20:11 +02:00
parent b980d32d02
commit 285811f852

View File

@@ -546,7 +546,9 @@ class Session(Storage):
# else the session goes in db
elif response.session_storage_type == 'db':
# verify that session_id exists
if not response.session_id:
return
# verify if tablename was set or used in connect
if response.session_table_name and tablename == 'web2py_session':
tablename = response.session_table_name