twisted.web.server.Session.notifyOnExpire(self, callback)
twisted.web.server.Session
Call this callback when the session expires or logs out.