@@ -71,6 +71,9 @@ class MySessionInterface(SessionInterface):
return SQLSession(sid, self.db.engine, self.table, True)
def save_session(self, app, session, response):
+ if not session and not session.modified:
+ return # empty/unused session
+
if session.modified:
session.save()